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 $ 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 $ podman diff container1 image1
67 A /test
68
69
70
72 podman(1), podman-container-diff(1), podman-image-diff(1)
73
74
76 August 2017, Originally compiled by Ryan Cole rycole@redhat.com
77 ⟨mailto:rycole@redhat.com⟩
78
79
80
81 podman-diff(1)