crane
TLDR
Pull image
$ crane pull [registry/image:tag] [output.tar]
Push image$ crane push [image.tar] [registry/image:tag]
Copy image between registries$ crane copy [src/image:tag] [dst/image:tag]
List tags for image$ crane ls [registry/image]
Get image digest$ crane digest [registry/image:tag]
Get image manifest$ crane manifest [registry/image:tag]
Get image configuration$ crane config [registry/image:tag]
Authenticate to registry$ crane auth login [registry] -u [user] -p [password]
SYNOPSIS
crane command [options] [arguments]
DESCRIPTION
crane is a tool for interacting with container registries. It can pull, push, copy, and inspect container images without requiring a container runtime like Docker. Part of the go-containerregistry project.
PARAMETERS
--platform os/arch
Target platform (e.g., linux/amd64)--insecure
Allow insecure registry connections-v, --verbose
Verbose output
COMMANDS
pull
Download image as tarballpush
Upload tarball as imagecopy
Copy image between registriesls
List tags for repositorydigest
Get image digestmanifest
Get image manifestconfig
Get image configcatalog
List repositories in registryauth
Manage registry authenticationappend
Append layers to imageflatten
Flatten image layersmutate
Modify image metadatavalidate
Validate imageexport
Export filesystem from image
ENVIRONMENT
DOCKER_CONFIG
Path to Docker config for credentials
CAVEATS
Does not require Docker daemon. Uses OCI registry API directly. Credentials read from Docker config by default.


