github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/diff.md (about) 1 --- 2 title: "diff" 3 description: "The diff command description and usage" 4 keywords: "list, changed, files, container" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 ## diff 17 18 ```markdown 19 Usage: docker diff CONTAINER 20 21 Inspect changes to files or directories on a container's filesystem 22 23 Options: 24 --help Print usage 25 ``` 26 27 List the changed files and directories in a container᾿s filesystem since the 28 container was created. Three different types of change are tracked: 29 30 | Symbol | Description | 31 |--------|---------------------------------| 32 | `A` | A file or directory was added | 33 | `D` | A file or directory was deleted | 34 | `C` | A file or directory was changed | 35 36 You can use the full or shortened container ID or the container name set using 37 `docker run --name` option. 38 39 ## Examples 40 41 Inspect the changes to an `nginx` container: 42 43 ```bash 44 $ docker diff 1fdfd1f54c1b 45 46 C /dev 47 C /dev/console 48 C /dev/core 49 C /dev/stdout 50 C /dev/fd 51 C /dev/ptmx 52 C /dev/stderr 53 C /dev/stdin 54 C /run 55 A /run/nginx.pid 56 C /var/lib/nginx/tmp 57 A /var/lib/nginx/tmp/client_body 58 A /var/lib/nginx/tmp/fastcgi 59 A /var/lib/nginx/tmp/proxy 60 A /var/lib/nginx/tmp/scgi 61 A /var/lib/nginx/tmp/uwsgi 62 C /var/log/nginx 63 A /var/log/nginx/access.log 64 A /var/log/nginx/error.log 65 ```