3 ms·
Temporary ssh containers, I just want to ssh (some id)@(container host), spin up a lxc container or firecracker microvm, it attaches to it. When I exit the ssh
by KomoD 10mo ago
Temporary ssh containers, I just want to ssh (some id)@(container host), spin up a lxc container or firecracker microvm, it attaches to it.
When I exit the ssh session, it terminates (or "pauses").
I've wanted to make it for a while but never got around to it.
- ValtteriL 10mo agoYou can get such disposable shell in k8s with a command like: kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh Doesn't use ssh though.
- cik 10mo agoUnless I'm missing it, the linuxserver have a container you can use. There's also containerssh (which I use all the time) https://hub.docker.com/r/linuxserver/openssh-server https://hub.docker.com/r/linuxserver/openssh-server https://hub.docker.com/r/containerssh/containerssh https://hub.docker.com/r/containerssh/containerssh
- KomoD 10mo agoOh interesting! ContainerSSH looks like what I want, thanks.