Skip to content

A command for one off containers #64

Description

@peterfication

Click is an incredible tool already! I use it so often and it saves me a lot of time.

Sometimes, I'm in the situation that I want to go into a container that already stopped (not because of the files that were created in there, but because of the environment). The way I do it right now is 1.) check the Docker image that was being used with click 2.) execute the following command:

kubectl run one-off-shell -n <...> --rm -i --tty --image <...> -- bash

Would be cool to be just in click, select the pod and run one-off:

[clust] [default] [awesome-123-r462t] > one-off
root@one-off-shell-5cfd8f874f-pttcx:/home/root# ...

What do you think about this feature?

I would be keen to try a PR, even though I'm pretty new to Rust :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions