2024-10-03 11:48:34 +02:00
|
|
|
# crane copy
|
|
|
|
|
|
|
|
> Efficiently copy a remote image from source to target while retaining the digest value.
|
|
|
|
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_copy.md>.
|
|
|
|
|
|
|
|
- Copy an image from source to target:
|
|
|
|
|
|
|
|
`crane copy {{source}} {{target}}`
|
|
|
|
|
|
|
|
- Copy all tags:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane copy {{source}} {{target}} {{[-a|--all-tags]}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Set the maximum number of concurrent copies, defaults to GOMAXPROCS:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane copy {{source}} {{target}} {{[-j|--jobs]}} {{int}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Avoid overwriting existing tags in target:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane copy {{source}} {{target}} {{[-n|--no-clobber]}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane copy {{[-h|--help]}}`
|