1podman-diff(1) General Commands Manual podman-diff(1)
2
3
4
6 podman-diff - Inspect changes on a container or image's filesystem
7
8
10 podman diff [options] container|image [container|image]
11
12
14 Displays changes on a container or image's filesystem. The container
15 or image is compared to its parent layer or the second argument when
16 given.
17
18
19 The output is prefixed with the following symbols:
20
21
22 ┌───────┬────────────────────────────────┐
23 │Symbol │ 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
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. Note: the last started container can be from other users of
43 Podman on the host machine. (This option is not available with the re‐
44 mote Podman client, including Mac and Windows (excluding WSL2) ma‐
45 chines)
46
47
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
74 podman(1), podman-container-diff(1), podman-image-diff(1)
75
76
78 August 2017, Originally compiled by Ryan Cole rycole@redhat.com
79 ⟨mailto:rycole@redhat.com⟩
80
81
82
83 podman-diff(1)