mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 20:43:59 +00:00
19 lines
526 B
Plaintext
19 lines
526 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# crane tag
|
|
|
|
> Efficiently tag a remote image without downloading it, which differs from the `copy` command.
|
|
> It skips the layer existence checks because we know the manifest already exists making it slightly faster.
|
|
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_tag.md>.
|
|
|
|
- Tag remote image:
|
|
|
|
`crane tag {{image_name}} {{tag_name}}`
|
|
|
|
- Display help:
|
|
|
|
`crane tag {{[-h|--help]}}`
|