github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-container-diff.1.md (about)

     1  % podman-container-diff(1)
     2  
     3  ## NAME
     4  podman\-container\-diff - Inspect changes on a container's filesystem
     5  
     6  ## SYNOPSIS
     7  **podman container diff** [*options*] *container* [*container*]
     8  
     9  ## DESCRIPTION
    10  Displays changes on a container's filesystem. The container will be compared to its parent layer or the second argument when given.
    11  
    12  The output is prefixed with the following symbols:
    13  
    14  | Symbol | Description |
    15  |--------|-------------|
    16  | A | A file or directory was added.   |
    17  | D | A file or directory was deleted. |
    18  | C | A file or directory was changed. |
    19  
    20  ## OPTIONS
    21  
    22  #### **--format**
    23  
    24  Alter the output into a different format. The only valid format for **podman container diff** is `json`.
    25  
    26  #### **--latest**, **-l**
    27  
    28  Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
    29  to run containers such as CRI-O, the last started container could be from either of those methods. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
    30  
    31  ## EXAMPLE
    32  
    33  ```
    34  # podman container diff container1
    35  C /usr
    36  C /usr/local
    37  C /usr/local/bin
    38  A /usr/local/bin/docker-entrypoint.sh
    39  ```
    40  
    41  ```
    42  $ podman container diff --format json container1 container2
    43  {
    44       "added": [
    45            "/test"
    46       ]
    47  }
    48  ```
    49  
    50  ## SEE ALSO
    51  **[podman(1)](podman.1.md)**, **[podman-container(1)](podman-container.1.md)**
    52  
    53  ## HISTORY
    54  July 2021, Originally compiled by Paul Holzinger <pholzing@redhat.com>