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

20 lines
530 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.

# gcrane 复制
> 高效地将远程镜像从源复制到目标,同时保留摘要值。
> 更多信息:<https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>。
- 从源复制镜像到目标:
`gcrane {{cp|copy}} {{source}} {{target}}`
- 设置最大并发复制数量,默认为 20
`gcrane copy {{source}} {{target}} {{-j|--jobs}} {{nr_of_copies}}`
- 是否递归遍历仓库:
`gcrane copy {{source}} {{target}} {{-r|--recursive}}`
- 显示帮助信息:
`gcrane copy {{-h|--help}}`