Files
tldr/pages.zh/common/crane.md

29 lines
786 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# crane
> 容器镜像管理工具。
> 一些子命令,如 `pull`、`push`、`copy` 等,有各自的使用文档。
> 更多信息:<https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md/>。
- 执行 `crane` 子命令:
`crane {{subcommand}}`
- 允许推送非可分发(外部)层:
`crane --allow-nondistributable-artifacts {{subcommand}}`
- 允许在没有 TLS 的情况下获取镜像引用:
`crane --insecure {{subcommand}}`
- 以 os/arch{{/variant}}{{:osversion}} 的形式指定平台例如linux/amd64。(默认全部)
`crane --platform {{platform}} {{subcommand}}`
- 为子命令启用调试日志:
`crane {{-v|--verbose}} {{subcommand}}`
- 显示子命令的帮助信息:
`crane {{-h|--help}} {{subcommand}}`