Docker - Exploring Docker containers's file system



Docker - Exploring Docker containers's file system


This command should let you explore a running docker container:


    docker exec -it name-of-container bash


The equivalent for this in docker-compose would be:


    docker-compose exec web bash


(web is the name-of-service in this case and it has tty by default.)


Once you are inside do:


    ls -lsa


or any other bash command like:


    cd ..

Enregistrer un commentaire

Plus récente Plus ancienne