github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-image-diff.1.md (about) 1 % podman-image-diff(1) 2 3 ## NAME 4 podman-image-diff - Inspect changes on an image's filesystem 5 6 ## SYNOPSIS 7 **podman image diff** [*options*] *image* [*image*] 8 9 ## DESCRIPTION 10 Displays changes on an image's filesystem. The 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 image diff** is `json`. 25 26 ## EXAMPLE 27 28 ``` 29 $ podman diff redis:old 30 C /usr 31 C /usr/local 32 C /usr/local/bin 33 A /usr/local/bin/docker-entrypoint.sh 34 ``` 35 36 ``` 37 $ podman diff --format json redis:old redis:alpine 38 { 39 "changed": [ 40 "/usr", 41 "/usr/local", 42 "/usr/local/bin" 43 ], 44 "added": [ 45 "/usr/local/bin/docker-entrypoint.sh" 46 ] 47 } 48 ``` 49 50 ## SEE ALSO 51 **[podman(1)](podman.1.md)**, **[podman-image(1)](podman-image.1.md)** 52 53 ## HISTORY 54 August 2017, Originally compiled by Ryan Cole <rycole@redhat.com>