NAME 名称

podman-container-diff - Inspect changes on a container’s filesystem
podman-container-diff - 检查容器文件系统上的更改

SYNOPSIS 概要

podman container diff [options] container [container]
podman 容器差异 [选项] 容器 [容器]

DESCRIPTION 描述

Displays changes on a container’s filesystem. The container is compared to its parent layer or the second argument when given.
显示容器文件系统上的更改。将容器与其父层或第二个参数进行比较(如果给定)。

The output is prefixed with the following symbols:
输出以以下符号为前缀:

Symbol

Description

A

A file or directory was added.
文件或目录已添加。

D

A file or directory was deleted.
文件或目录已删除。

C

A file or directory was changed.
文件或目录已更改。

OPTIONS 选项

--format

Alter the output into a different format. The only valid format for podman container diff is json.
将输出更改为不同的格式。podman 容器 diff 的唯一有效格式是 json

--latest, -l

Instead of providing the container name or ID, use the last created container. Note: the last started container can be from other users of Podman on the host machine. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
不要提供容器名称或 ID,而是使用最后创建的容器。注意:最后启动的容器可能来自主机上其他 Podman 用户。(此选项在远程 Podman 客户端中不可用,包括 Mac 和 Windows(不包括 WSL2)主机)

EXAMPLE 例子 ¶

# podman container diff container1
C /usr
C /usr/local
C /usr/local/bin
A /usr/local/bin/docker-entrypoint.sh
$ podman container diff --format json container1 container2
{
     "added": [
          "/test"
     ]
}

SEE ALSO 参见 ¶

podman(1), podman-container(1)

HISTORY 历史 ¶

July 2021, Originally compiled by Paul Holzinger pholzing@redhat.com
2021 年 7 月,最初由 Paul Holzinger pholzing@redhat.com 编译