click
click copied to clipboard
A command for one off containers
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 :)
I already provided a first working solution here: https://github.com/databricks/click/pull/65 I might have done some things wrong, so I'm really happy to receive feedback on this!