crane 是一个管理容器镜像的工具,由
Google containerregistry开发
安装
# go 安装
go install github.com/google/go-containerregistry/cmd/crane@latest
# Mac
brew install crane
# bin
https://github.com/google/go-containerregistry/releases使用
crane append将一个tarball的内容追加到一个远程镜像上crane auth登录或访问凭证crane blob从注册表中读取一个blobcrane catalog列出注册表中的存储库crane config获取一个镜像的配置crane copy有效地将远程镜像从src复制到dst,同时保留摘要值crane delete从其注册表中删除一个镜像引用crane digest获取一个镜像的摘要crane export将容器镜像的文件系统导出为一个 tarballcrane flatten将一个镜像的层平铺成一个单一的层crane index修改一个镜像的索引crane ls列出 repo 中的标签crane manifest获取一个镜像的清单crane mutate修改镜像标签和注释。容器必须被推送到注册表,清单在那里被更新。crane pull通过引用提取远程镜像并将其内容存储在本地crane push将本地镜像内容推送至远程注册表crane rebase将一个镜像重新放置到一个新的基础镜像上crane tag有效地标记一个远程镜像crane validate验证一个镜像的格式是否良好crane version打印版本
最近更新
最新评论