NAME 名称

podman-image-diff - Inspect changes on an image’s filesystem
podman-image-diff - 检查镜像文件系统上的更改

SYNOPSIS 概要

podman image diff [options] image [image]
podman image diff [选项] 镜像 [镜像]

DESCRIPTION 描述

Displays changes on an image’s filesystem. The image 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 image diff is json.
将输出更改为不同的格式。podman image diff 的唯一有效格式是 json

EXAMPLE 例子 ¶

Display image differences from images parent layer:
显示图像与图像父层之间的差异:

$ podman image diff redis:old
C /usr
C /usr/local
C /usr/local/bin
A /usr/local/bin/docker-entrypoint.sh

Display image differences between two different images in JSON format:
以 JSON 格式显示两个不同图像之间的差异:

$ podman image diff --format json redis:old redis:alpine
{
  "changed": [
    "/usr",
    "/usr/local",
    "/usr/local/bin"
  ],
  "added": [
    "/usr/local/bin/docker-entrypoint.sh"
  ]
}

SEE ALSO 参见 ¶

podman(1), podman-image(1)

HISTORY 历史 ¶

August 2017, Originally compiled by Ryan Cole rycole@redhat.com
2017 年 8 月,最初由 Ryan Cole rycole@redhat.com 编译