https://stackoverflow.com/questions/20813486/exploring-docker-containers-file-system Method 1: snapshoting You can evaluate container filesystem this way:
This way, you can evaluate filesystem of the running container in the precise time moment. Container is still running, no future changes are included. You can later delete snapshot using (filesystem of the running container is not affected!):
Method 2: ssh If you need continuous access, you can install sshd to your container and run the sshd daemon:
This way, you can run your app using ssh (connect and execute what you want). UPDATE - Method 3: nsenter Use
UPDATE - Method 4: docker exec Docker version 1.3 (latest, you might need to use docker apt repo to
install latest version as of Nov 2014) supports new command
see Docker command line documentation |
Docker >