2018-08-30 08:41:19 +00:00
|
|
|
% podman-diff(1)
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## NAME
|
2018-04-26 13:21:11 +00:00
|
|
|
podman\-diff - Inspect changes on a container or image's filesystem
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## SYNOPSIS
|
2018-06-29 17:53:33 +00:00
|
|
|
**podman diff** [*options*] *name*
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
Displays changes on a container or image's filesystem. The container or image will be compared to its parent layer
|
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
|
|
|
|
**--format**
|
|
|
|
|
|
|
|
Alter the output into a different format. The only valid format for diff is `json`.
|
|
|
|
|
2019-02-21 23:09:59 +00:00
|
|
|
**--latest, -l**
|
|
|
|
|
|
|
|
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
|
|
|
|
to run containers such as CRI-O, the last started container could be from either of those methods.
|
|
|
|
|
|
|
|
The latest option is not supported on the remote client.
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## EXAMPLE
|
|
|
|
|
2018-04-16 14:53:23 +00:00
|
|
|
```
|
|
|
|
# podman diff redis:alpine
|
2017-11-01 15:24:59 +00:00
|
|
|
C /usr
|
|
|
|
C /usr/local
|
|
|
|
C /usr/local/bin
|
|
|
|
A /usr/local/bin/docker-entrypoint.sh
|
2018-04-16 14:53:23 +00:00
|
|
|
```
|
2017-11-01 15:24:59 +00:00
|
|
|
|
2018-04-16 14:53:23 +00:00
|
|
|
```
|
|
|
|
# podman diff --format json redis:alpine
|
2017-11-01 15:24:59 +00:00
|
|
|
{
|
|
|
|
"changed": [
|
|
|
|
"/usr",
|
|
|
|
"/usr/local",
|
|
|
|
"/usr/local/bin"
|
|
|
|
],
|
|
|
|
"added": [
|
|
|
|
"/usr/local/bin/docker-entrypoint.sh"
|
|
|
|
]
|
|
|
|
}
|
2018-04-16 14:53:23 +00:00
|
|
|
```
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## SEE ALSO
|
2017-12-15 21:58:36 +00:00
|
|
|
podman(1)
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## HISTORY
|
|
|
|
August 2017, Originally compiled by Ryan Cole <rycole@redhat.com>
|