mirror of
https://github.com/docker/cli.git
synced 2025-04-21 17:25:54 +03:00
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: https://github.com/docker/cli/pull/3924#discussion_r1059986605 Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1.1 KiB
1.1 KiB
diff
Inspect changes to files or directories on a container's filesystem
Aliases
docker container diff
, docker diff
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