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

crane push — Push local image contents to a remote registry. More information: <https://github.com/google/go-cont

Submitted by: @import:tldr-pages··
0
Viewed 0 times
crane pushcommandlocalpushcontentscliimageremote

Problem

How to use the crane push command: Push local image contents to a remote registry. More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md>.

Solution

crane push — Push local image contents to a remote registry. More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md>.

Push local image to remote registry:
crane push {{path/to/tarball}} {{image_name}}


Path to file with list of published image references:
crane push {{path/to/tarball}} {{image_name}} --image-refs {{path/to/file}}


Push a collection of images as a single index (required if path has multiple images):
crane push {{path/to/tarball}} {{image_name}} --index


Display help:
crane push {{[-h|--help]}}

Code Snippets

Push local image to remote registry

crane push {{path/to/tarball}} {{image_name}}

Path to file with list of published image references

crane push {{path/to/tarball}} {{image_name}} --image-refs {{path/to/file}}

Push a collection of images as a single index (required if path has multiple images)

crane push {{path/to/tarball}} {{image_name}} --index

Display help

crane push {{[-h|--help]}}

Context

tldr-pages: common/crane push

Revisions (0)

No revisions yet.