github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-container-diff.1.md.in (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 is 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  @@option latest
    27  
    28  ## EXAMPLE
    29  
    30  ```
    31  # podman container diff container1
    32  C /usr
    33  C /usr/local
    34  C /usr/local/bin
    35  A /usr/local/bin/docker-entrypoint.sh
    36  ```
    37  
    38  ```
    39  $ podman container diff --format json container1 container2
    40  {
    41       "added": [
    42            "/test"
    43       ]
    44  }
    45  ```
    46  
    47  ## SEE ALSO
    48  **[podman(1)](podman.1.md)**, **[podman-container(1)](podman-container.1.md)**
    49  
    50  ## HISTORY
    51  July 2021, Originally compiled by Paul Holzinger <pholzing@redhat.com>