1podman-container-diff(1)    General Commands Manual   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       including Mac and Windows (excluding WSL2) machines)
45
46

EXAMPLE

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
56              $ podman container diff --format json container1 container2
57              {
58                   "added": [
59                        "/test"
60                   ]
61              }
62
63
64

SEE ALSO

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

HISTORY

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