1podman-diff(1)              General Commands Manual             podman-diff(1)
2
3
4

NAME

6       podman-diff - Inspect changes on a container or image's filesystem
7
8

SYNOPSIS

10       podman diff [options] container|image [container|image]
11
12

DESCRIPTION

14       Displays  changes  on a container or image's filesystem.  The container
15       or image will be compared to its parent layer or  the  second  argument
16       when given.
17
18
19       The output is prefixed with the following symbols:
20
21
22       ┌───────┬────────────────────────────────┐
23Symbol Description                    
24       ├───────┼────────────────────────────────┤
25       │A      │ A file or directory was added. │
26       ├───────┼────────────────────────────────┤
27       │D      │ A   file   or   directory  was │
28       │       │ deleted.                       │
29       ├───────┼────────────────────────────────┤
30       │C      │ A  file   or   directory   was │
31       │       │ changed.                       │
32       └───────┴────────────────────────────────┘
33

OPTIONS

35   --format
36       Alter  the  output  into a different format.  The only valid format for
37       podman diff is json.
38
39
40   --latest, -l
41       Instead of providing the container name or ID,  use  the  last  created
42       container.  If you use methods other than Podman to run containers such
43       as CRI-O, the last started container could  be  from  either  of  those
44       methods.  (This  option is not available with the remote Podman client,
45       including Mac and Windows (excluding WSL2) machines)
46
47

EXAMPLE

49              $ podman diff container1
50              A /myscript.sh
51
52
53
54              $ podman diff --format json myimage
55              {
56                "changed": [
57                  "/usr",
58                  "/usr/local",
59                  "/usr/local/bin"
60                ],
61                "added": [
62                  "/usr/local/bin/docker-entrypoint.sh"
63                ]
64              }
65
66
67
68              $ podman diff container1 image1
69              A /test
70
71
72

SEE ALSO

74       podman(1), podman-container-diff(1), podman-image-diff(1)
75
76

HISTORY

78       August  2017,  Originally  compiled  by  Ryan  Cole   rycole@redhat.com
79       ⟨mailto:rycole@redhat.com⟩
80
81
82
83                                                                podman-diff(1)
Impressum