4.4. 检查远程镜像
在将镜像拉取到系统之前,请使用 skopeo inspect
命令显示远程容器注册中心中的镜像信息。
先决条件
-
container-tools
元数据包已安装。
流程
-
container-tools
元数据包已安装。 检查
registry.redhat.io/ubi9/ubi-init
镜像:# skopeo inspect docker://registry.redhat.io/ubi9/ubi-init { "Name": "registry.redhat.io/ubi9/ubi9-init", "Digest": "sha256:c6d1e50ab...", "RepoTags": [ ... "latest" ], "Created": "2020-12-10T07:16:37.250312Z", "DockerVersion": "1.13.1", "Labels": { "architecture": "x86_64", "build-date": "2020-12-10T07:16:11.378348", "com.redhat.build-host": "cpt-1007.osbs.prod.upshift.rdu2.redhat.com", "com.redhat.component": "ubi9-init-container", "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI", "description": "The Universal Base Image Init is designed to run an init system as PID 1 for running multi-services inside a container ... } }
其他资源
-
您系统上的
skopeo-inspect
手册页