1podman-diff(1)()                                              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
46

EXAMPLE

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

SEE ALSO

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

HISTORY

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