NAME 名称

podman-image-exists - Check if an image exists in local storage
podman-image-exists - 检查本地存储中是否存在镜像

SYNOPSIS 概要

podman image exists image
podman 镜像存在镜像

DESCRIPTION 描述

podman image exists checks if an image exists in local storage. The ID or Name of the image may be used as input. Podman returns an exit code of 0 when the image is found. A 1 is returned otherwise. An exit code of 125 indicates there was an issue accessing the local storage.
podman 镜像存在检查是否在本地存储中存在镜像。可以使用镜像的 ID 或名称作为输入。当找到镜像时,Podman 返回 0 的退出代码。否则返回 1 。退出代码 125 表示访问本地存储时出现问题。

OPTIONS 选项

--help, -h --help,-h ¶

Print usage statement 打印使用说明

EXAMPLES 示例

Check if an image called webclient exists in local storage (the image does actually exist):
检查本地存储中是否存在名为 webclient 的图像(实际上图像确实存在):

$ podman image exists webclient
$ echo $?
0

Check if an image called webbackend exists in local storage (the image does not actually exist):
检查本地存储中是否存在名为 webbackend 的图像(实际上图像并不存在):

$ podman image exists webbackend
$ echo $?
1

SEE ALSO 参见 ¶

podman(1), podman-image(1)

HISTORY 历史 ¶

November 2018, Originally compiled by Brent Baude (bbaude at redhat dot com)
2018 年 11 月,最初由 Brent Baude(bbaude at redhat dot com)编写