github.com/olljanat/moby@v1.13.1/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 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.
    28   There are 3 events that are listed in the `diff`:
    29  
    30  1. `A` - Add
    31  2. `D` - Delete
    32  3. `C` - Change
    33  
    34  For example:
    35  
    36      $ docker diff 7bb0e258aefe
    37  
    38      C /dev
    39      A /dev/kmsg
    40      C /etc
    41      A /etc/mtab
    42      A /go
    43      A /go/src
    44      A /go/src/github.com
    45      A /go/src/github.com/docker
    46      A /go/src/github.com/docker/docker
    47      A /go/src/github.com/docker/docker/.git
    48      ....