github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/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*] *container|image* [*container|image*] 8 9 ## DESCRIPTION 10 Displays changes on a container or image's filesystem. The container or image 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 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 diff container1 35 A /myscript.sh 36 ``` 37 38 ``` 39 $ podman diff --format json myimage 40 { 41 "changed": [ 42 "/usr", 43 "/usr/local", 44 "/usr/local/bin" 45 ], 46 "added": [ 47 "/usr/local/bin/docker-entrypoint.sh" 48 ] 49 } 50 ``` 51 52 ``` 53 $ podman diff container1 image1 54 A /test 55 ``` 56 57 ## SEE ALSO 58 **[podman(1)](podman.1.md)**, **[podman-container-diff(1)](podman-container-diff.1.md)**, **[podman-image-diff(1)](podman-image-diff.1.md)** 59 60 ## HISTORY 61 August 2017, Originally compiled by Ryan Cole <rycole@redhat.com>