Inspect changes to files or directories on a container's filesystem
docker container diff, docker diff
List the changed files and directories in a container᾿s filesystem since the container was created. Three different types of change are tracked:
| Symbol | Description |
|---|---|
A | A file or directory was added |
D | A file or directory was deleted |
C | A file or directory was changed |
You can use the full or shortened container ID or the container name set using
docker run --name option.
Inspect the changes to an nginx container:
$ docker diff 1fdfd1f54c1bC /devC /dev/consoleC /dev/coreC /dev/stdoutC /dev/fdC /dev/ptmxC /dev/stderrC /dev/stdinC /runA /run/nginx.pidC /var/lib/nginx/tmpA /var/lib/nginx/tmp/client_bodyA /var/lib/nginx/tmp/fastcgiA /var/lib/nginx/tmp/proxyA /var/lib/nginx/tmp/scgiA /var/lib/nginx/tmp/uwsgiC /var/log/nginxA /var/log/nginx/access.logA /var/log/nginx/error.log