← 返回命令列表

Linux command

crane 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Pull image

crane pull [registry/image:tag] [output.tar]

Push image

crane push [image.tar] [registry/image:tag]

Copy image between registries

crane copy [src/image:tag] [dst/image:tag]

List tags for image

crane ls [registry/image]

Get image digest

crane digest [registry/image:tag]

Get image manifest

crane manifest [registry/image:tag]

Get image configuration

crane config [registry/image:tag]

Authenticate to registry

crane auth login [registry] -u [user] -p [password]

说明

crane is a tool for interacting with container registries. It can pull, push, copy, and inspect container images without requiring a container runtime like Docker. Part of the go-containerregistry project.

参数

--platform _os/arch_
Target platform (e.g., linux/amd64)
--insecure
Allow insecure registry connections
-v, --verbose
Verbose output

FAQ

What is the crane command used for?

crane is a tool for interacting with container registries. It can pull, push, copy, and inspect container images without requiring a container runtime like Docker. Part of the go-containerregistry project.

How do I run a basic crane example?

Run `crane pull [registry/image:tag] [output.tar]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --platform _os/arch_ do in crane?

Target platform (e.g., linux/amd64)