docker diffEstimated reading time: 1 minute
Edge only: This is the CLI reference for Docker CE Edge versions. Some of these options may not be available to Docker CE stable or Docker EE. You can view the stable version of this CLI reference or learn about Docker CE Edge.
Inspect changes to files or directories on a container’s filesystem
docker diff CONTAINER
|docker||The base command for the Docker CLI.|
List the changed files and directories in a container᾿s filesystem since the container was created. Three different types of change are tracked:
||A file or directory was added|
||A file or directory was deleted|
||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
$ docker diff 1fdfd1f54c1b C /dev C /dev/console C /dev/core C /dev/stdout C /dev/fd C /dev/ptmx C /dev/stderr C /dev/stdin C /run A /run/nginx.pid C /var/lib/nginx/tmp A /var/lib/nginx/tmp/client_body A /var/lib/nginx/tmp/fastcgi A /var/lib/nginx/tmp/proxy A /var/lib/nginx/tmp/scgi A /var/lib/nginx/tmp/uwsgi C /var/log/nginx A /var/log/nginx/access.log A /var/log/nginx/error.log