...
â–½

Text file src/github.com/docker/cli/docs/reference/commandline/container_diff.md

Documentation: github.com/docker/cli/docs/reference/commandline

     1# diff
     2
     3<!---MARKER_GEN_START-->
     4Inspect 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
    15List the changed files and directories in a container᾿s filesystem since the
    16container 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
    24You can use the full or shortened container ID or the container name set using
    25`docker run --name` option.
    26
    27## Examples
    28
    29Inspect the changes to an `nginx` container:
    30
    31```console
    32$ docker diff 1fdfd1f54c1b
    33
    34C /dev
    35C /dev/console
    36C /dev/core
    37C /dev/stdout
    38C /dev/fd
    39C /dev/ptmx
    40C /dev/stderr
    41C /dev/stdin
    42C /run
    43A /run/nginx.pid
    44C /var/lib/nginx/tmp
    45A /var/lib/nginx/tmp/client_body
    46A /var/lib/nginx/tmp/fastcgi
    47A /var/lib/nginx/tmp/proxy
    48A /var/lib/nginx/tmp/scgi
    49A /var/lib/nginx/tmp/uwsgi
    50C /var/log/nginx
    51A /var/log/nginx/access.log
    52A /var/log/nginx/error.log
    53```

View as plain text