Lurker News

Comments (139) 24 threads

Show all comments

Showing thread 20 of 24

robbomacrae1 reply#
Thank you!! I always wanted to have a way of quickly ssh'ing into my docker image with some sort of virtual box implementation so I could poke around. I always felt the debug tools lacking. This is perfect. Can't wait to try it out!
nine_k#
Here comes!

Getting shell in a new copy of container:
docker run -it --entrypoint=/bin/sh ${container}
Running shell inside a running container:
docker exec -it ${container} /bin/sh
Running sshd inside a container to let you peek inside is bad taste, and bad security, too.