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

24 lines
616 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 复制
> 高效地将远程镜像从源复制到目标,同时保留摘要值。
> 更多信息:<https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_copy.md>。
- 从源复制镜像到目标:
`crane copy {{source}} {{target}}`
- 复制所有标签:
`crane copy {{source}} {{target}} {{-a|--all-tags}}`
- 设置最大并发复制数量,默认为 GOMAXPROCS
`crane copy {{source}} {{target}} {{-j|--jobs}} {{int}}`
- 避免覆盖目标中的现有标签:
`crane copy {{source}} {{target}} {{-n|--no-clobber}}`
- 显示帮助信息:
`crane copy {{-h|--help}}`