Skip to main content

Interactive shell (commandline)

Sometimes it's difficult to understand problems within a docker. Like network issues or configurations that need to be adjusted.
It's quite easy to log into a docker via command line.

1) open a command line (it can be that you need to activate SSH access) on the hosting system

2) find the docker image you're interested in

docker ps

3) open a shell to the docker using the id from the previous query

docker exec -it c05876343 /bin/bash

Now you should be inside the docker. To leave the session just type 

exit