1podman-container-diff(1)()                          podman-container-diff(1)()
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

14       Displays  changes  on  a  container's filesystem. The container will be
15       compared to its parent layer or the second argument when given.
16
17
18       The output is prefixed with the following symbols:
19
20
21       ┌───────┬────────────────────────────────┐
22Symbol 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

OPTIONS

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. If you use methods other than Podman to run containers  such
42       as  CRI-O,  the  last  started  container could be from either of those
43       methods. (This option is not available with the remote Podman client)
44
45

EXAMPLE

47              # podman container diff container1
48              C /usr
49              C /usr/local
50              C /usr/local/bin
51              A /usr/local/bin/docker-entrypoint.sh
52
53
54
55              $ podman container diff --format json container1 container2
56              {
57                   "added": [
58                        "/test"
59                   ]
60              }
61
62
63

SEE ALSO

65       podman(1), podman-container(1)
66
67

HISTORY

69       July 2021, Originally compiled by  Paul  Holzinger  pholzing@redhat.com
70       ⟨mailto:pholzing@redhat.com⟩
71
72
73
74                                                    podman-container-diff(1)()
Impressum