skopeo 命令_使用 skopeo 操作容器镜像

skopeo是一个强大的工具,能够方便地处理容器镜像,无需下载即可获取镜像信息,支持从远程复制和本地导入导出镜像。本文介绍了skopeo的安装、命令选项,并通过实例展示了如何获取镜像信息、拷贝镜像以及删除镜像的操作。
摘要由CSDN通过智能技术生成

skopeo 操作镜像是非常方便的。

安装

# centos

yum installskopeo

其他系统见 安装文档

使用

命令选项

# skopeo --help

NAME:

skopeo - Various operations with container images and container image registries

USAGE:

skopeo [global options] command [commandoptions] [arguments...]

VERSION:

0.1.37

COMMANDS:

copy Copy an IMAGE-NAME from one location to another

inspect Inspect image IMAGE-NAME

delete Delete image IMAGE-NAME

manifest-digest Compute a manifest digest of a file

standalone-sign Create a signature using localfiles

standalone-verify Verify a signature using localfiles

help, h Shows a list of commands or helpforone commandGLOBAL OPTIONS:

--debug enabledebug output

--policy value Path to a trust policy file

--insecure-policy run the tool without any policy check

--registries.d DIR use registry configuration files inDIR (e.g. forcontainer signature storage)

--override-arch ARCH use ARCH instead of the architecture of the machine forchoosing images

--override-os OS use OS instead of the running OS forchoosing images

--command-timeout value timeoutforthe commandexecution (default: 0s)

--help, -h show help

--version, -v print the version

获取镜像的信息

skopeo 可以在不用下载镜像的情况下,获取镜像信息

# skopeo inspect docker://docker.io/centos

{

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值