Linux command
crane-copy 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Copy an image
crane copy [source_image] [destination_image]
Copy with all tags
crane copy --all-tags [source_repo] [destination_repo]
Copy specific platform
crane copy --platform [linux/amd64] [source] [destination]
说明
crane copy copies container images between registries without pulling to local storage. This is more efficient than docker pull/push as it transfers directly between registries.
参数
- -a, --all-tags
- Copy all tags from source repository.
- --platform _platform_
- Copy only specific platform (e.g., linux/amd64).
- -n, --no-clobber
- Don't overwrite existing tags.
FAQ
What is the crane-copy command used for?
crane copy copies container images between registries without pulling to local storage. This is more efficient than docker pull/push as it transfers directly between registries.
How do I run a basic crane-copy example?
Run `crane copy [source_image] [destination_image]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all-tags do in crane-copy?
Copy all tags from source repository.