1podman-container-diff(1) General Commands Manual podman-container-diff(1)
2
3
4
6 podman-container-diff - Inspect changes on a container's filesystem
7
8
10 podman container diff [options] container [container]
11
12
14 Displays changes on a container's filesystem. The container is compared
15 to its parent layer or the second argument when given.
16
17
18 The output is prefixed with the following symbols:
19
20
21 ┌───────┬────────────────────────────────┐
22 │Symbol │ Description │
23 ├───────┼────────────────────────────────┤
24 │A │ A file or directory was added. │
25 ├───────┼────────────────────────────────┤
26 │D │ A file or directory was │
27 │ │ deleted. │
28 ├───────┼────────────────────────────────┤
29 │C │ A file or directory was │
30 │ │ changed. │
31 └───────┴────────────────────────────────┘
32
34 --format
35 Alter the output into a different format. The only valid format for
36 podman container diff is json.
37
38
39 --latest, -l
40 Instead of providing the container name or ID, use the last created
41 container. Note: the last started container can be from other users of
42 Podman on the host machine. (This option is not available with the re‐
43 mote Podman client, including Mac and Windows (excluding WSL2) ma‐
44 chines)
45
46
48 # podman container diff container1
49 C /usr
50 C /usr/local
51 C /usr/local/bin
52 A /usr/local/bin/docker-entrypoint.sh
53
54
55 $ podman container diff --format json container1 container2
56 {
57 "added": [
58 "/test"
59 ]
60 }
61
62
63
65 podman(1), podman-container(1)
66
67
69 July 2021, Originally compiled by Paul Holzinger pholzing@redhat.com
70 ⟨mailto:pholzing@redhat.com⟩
71
72
73
74 podman-container-diff(1)