Exploring a Docker container’s file system

There are three ways to get into bash in a docker container:

docker exec -it containername bash

docker exec -it containername “bash”

docker exec -it containername /bin/bash

Once you run those from the command line, it brings you to the top level of the file system of your Docker container:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.