github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/container_diff.md (about) 1 # diff 2 3 <!---MARKER_GEN_START--> 4 Inspect changes to files or directories on a container's filesystem 5 6 ### Aliases 7 8 `docker container diff`, `docker diff` 9 10 11 <!---MARKER_GEN_END--> 12 13 ## Description 14 15 List the changed files and directories in a container᾿s filesystem since the 16 container was created. Three different types of change are tracked: 17 18 | Symbol | Description | 19 |--------|---------------------------------| 20 | `A` | A file or directory was added | 21 | `D` | A file or directory was deleted | 22 | `C` | A file or directory was changed | 23 24 You can use the full or shortened container ID or the container name set using 25 `docker run --name` option. 26 27 ## Examples 28 29 Inspect the changes to an `nginx` container: 30 31 ```console 32 $ docker diff 1fdfd1f54c1b 33 34 C /dev 35 C /dev/console 36 C /dev/core 37 C /dev/stdout 38 C /dev/fd 39 C /dev/ptmx 40 C /dev/stderr 41 C /dev/stdin 42 C /run 43 A /run/nginx.pid 44 C /var/lib/nginx/tmp 45 A /var/lib/nginx/tmp/client_body 46 A /var/lib/nginx/tmp/fastcgi 47 A /var/lib/nginx/tmp/proxy 48 A /var/lib/nginx/tmp/scgi 49 A /var/lib/nginx/tmp/uwsgi 50 C /var/log/nginx 51 A /var/log/nginx/access.log 52 A /var/log/nginx/error.log 53 ```