I've started a docker container and I've modified a file. At some point later I'd like to inspect this change from the docker host. Now I use docker cp
to export the file, inspect it, delete it. But this multistep copy-read-delete process seems like over kill if I just want to read a file.
Is there a better way to inspect filesystem changes in a docker container?
I need more info than docker diff
is showing.
You can find the filesystem of a running container the Docker data directory, usually
/var/lib/docker/
. The specific location varies depending on which storage driver is used. In the case of AUFS, the location is `/var/lib/docker/aufs/mnt/${CONTAINER_ID}/.