github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-diff.1.md.in (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 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 diff** is `json`. 25 26 @@option latest 27 28 ## EXAMPLE 29 30 Show container-modified files versus the container's image: 31 ``` 32 $ podman diff container1 33 A /myscript.sh 34 ``` 35 36 Show container-modified files versus the container's image in JSON format: 37 ``` 38 $ podman diff --format json myimage 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 Show the difference between the specified container and the image: 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>