github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-diff.1.md (about)

     1  % podman-diff(1)
     2  
     3  ## NAME
     4  podman\-diff - Inspect changes on a container or image's filesystem
     5  
     6  ## SYNOPSIS
     7  **podman diff** [*options*] *name*
     8  
     9  **podman container diff** [*options*] *name*
    10  
    11  ## DESCRIPTION
    12  Displays changes on a container or image's filesystem.  The container or image will be compared to its parent layer
    13  
    14  ## OPTIONS
    15  
    16  #### **--format**
    17  
    18  Alter the output into a different format.  The only valid format for diff is `json`.
    19  
    20  #### **--latest**, **-l**
    21  
    22  Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
    23  to run containers such as CRI-O, the last started container could be from either of those methods.
    24  
    25  The latest option is not supported on the remote client.
    26  
    27  ## EXAMPLE
    28  
    29  ```
    30  # podman diff redis:alpine
    31  C /usr
    32  C /usr/local
    33  C /usr/local/bin
    34  A /usr/local/bin/docker-entrypoint.sh
    35  ```
    36  
    37  ```
    38  # podman diff --format json redis:alpine
    39  {
    40    "changed": [
    41      "/usr",
    42      "/usr/local",
    43      "/usr/local/bin"
    44    ],
    45    "added": [
    46      "/usr/local/bin/docker-entrypoint.sh"
    47    ]
    48  }
    49  ```
    50  
    51  ## SEE ALSO
    52  podman(1)
    53  
    54  ## HISTORY
    55  August 2017, Originally compiled by Ryan Cole <rycole@redhat.com>