HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

crane copy — Efficiently copy a remote image from source to target while retaining the digest value. More informa

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandefficientlycopyfromcliimagecrane copyremote

Problem

How to use the crane copy command: 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>.

Solution

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 {{[cp|copy]}} {{source}} {{target}}


Copy all tags:
crane {{[cp|copy]}} {{source}} {{target}} {{[-a|--all-tags]}}


Set the maximum number of concurrent copies, defaults to GOMAXPROCS:
crane {{[cp|copy]}} {{source}} {{target}} {{[-j|--jobs]}} {{int}}


Avoid overwriting existing tags in target:
crane {{[cp|copy]}} {{source}} {{target}} {{[-n|--no-clobber]}}


Display help:
crane {{[cp|copy]}} {{[-h|--help]}}

Code Snippets

Copy an image from source to target

crane {{[cp|copy]}} {{source}} {{target}}

Copy all tags

crane {{[cp|copy]}} {{source}} {{target}} {{[-a|--all-tags]}}

Set the maximum number of concurrent copies, defaults to GOMAXPROCS

crane {{[cp|copy]}} {{source}} {{target}} {{[-j|--jobs]}} {{int}}

Avoid overwriting existing tags in target

crane {{[cp|copy]}} {{source}} {{target}} {{[-n|--no-clobber]}}

Display help

crane {{[cp|copy]}} {{[-h|--help]}}

Context

tldr-pages: common/crane copy

Revisions (0)

No revisions yet.