github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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  # diff
     8  
     9  ```markdown
    10  Usage:  docker diff CONTAINER
    11  
    12  Inspect changes to files or directories on a container's filesystem
    13  
    14  Options:
    15        --help   Print usage
    16  ```
    17  
    18  ## Description
    19  
    20  List the changed files and directories in a container᾿s filesystem since the
    21  container was created. Three different types of change are tracked:
    22  
    23  | Symbol | Description                     |
    24  |--------|---------------------------------|
    25  | `A`    | A file or directory was added   |
    26  | `D`    | A file or directory was deleted |
    27  | `C`    | A file or directory was changed |
    28  
    29  You can use the full or shortened container ID or the container name set using
    30  `docker run --name` option.
    31  
    32  ## Examples
    33  
    34  Inspect the changes to an `nginx` container:
    35  
    36  ```bash
    37  $ docker diff 1fdfd1f54c1b
    38  
    39  C /dev
    40  C /dev/console
    41  C /dev/core
    42  C /dev/stdout
    43  C /dev/fd
    44  C /dev/ptmx
    45  C /dev/stderr
    46  C /dev/stdin
    47  C /run
    48  A /run/nginx.pid
    49  C /var/lib/nginx/tmp
    50  A /var/lib/nginx/tmp/client_body
    51  A /var/lib/nginx/tmp/fastcgi
    52  A /var/lib/nginx/tmp/proxy
    53  A /var/lib/nginx/tmp/scgi
    54  A /var/lib/nginx/tmp/uwsgi
    55  C /var/log/nginx
    56  A /var/log/nginx/access.log
    57  A /var/log/nginx/error.log
    58  ```