Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A command for one off containers #64

Open
peterfication opened this issue Jun 16, 2018 · 1 comment
Open

A command for one off containers #64

peterfication opened this issue Jun 16, 2018 · 1 comment

Comments

@peterfication
Copy link

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 :)

@peterfication
Copy link
Author

peterfication commented Jun 16, 2018

I already provided a first working solution here: #65
I might have done some things wrong, so I'm really happy to receive feedback on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant