1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference/commandline/diff.md
Misty Stanley-Jones 52df69f00d Standardized formatting of CLI reference commands
Command name should be a H1

Only Description, Examples, and Related Commands should be H2

Changed 'Related information' heading to 'Related commands' since 99% it is only linking commands

Added some examples where relevant

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2017-02-08 16:57:58 -08:00

1.6 KiB
Raw Blame History

title description keywords
diff The diff command description and usage list, changed, files, container

diff

Usage:  docker diff CONTAINER

Inspect changes to files or directories on a container's filesystem

Options:
      --help   Print usage

Description

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.

Examples

Inspect the changes to an nginx container:

$ 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