docker-archive / for-aws

92 stars 26 forks source link

Direct SSH Access to the Host #169

Open polvoazul opened 6 years ago

polvoazul commented 6 years ago

Sometimes it is very hard to diagnose problems from inside the ssh container. In this particular case I would like to be able to restart the docker daemon in one server, as some containers are stuck in starting and I cant seem to docker inspect or kill them. From outside I would try to kill -9 the OS processes, or restart the daemon, but unfortunately I can't. Rebooting the machine, is, of course, possible, but would probably lead to a larger disturbance in the environment.

I would like to understand that design decision as I fail to see any advantages.

I am forced inside a container in my own servers, help :D !

Richard-Mathie commented 6 years ago

docker run -it -v /:/host_root bash

then perform a chroot into the host system?

polvoazul commented 6 years ago

Thats... Thats beautiful! 😄 How come I didn't think of the good ol' chroot!? 👏

(Still don't understand the motivation for the ssh container though...)