gcrane
Google Container Registry management tool
TLDR
List repositories and tags in a GCR path
SYNOPSIS
gcrane COMMAND [FLAGS]
DESCRIPTION
gcrane is a Google Container Registry-specific variant of crane with enhanced features for GCR and Artifact Registry. It provides richer output for listing operations and garbage collection support not available in standard crane.
Key enhancements over crane include recursive copying with -r flag (useful for backups, geo-replication, or mass renaming), detailed repository exploration, and the ability to identify untagged images for cleanup.
gcrane implements a superset of crane commands plus GCR-specific operations. It relies on GCR implementation details that may not be consistent with the general registry specification.
PARAMETERS
-r
Copy images recursively (for cp command).--platform PLATFORM
Specify platform for multi-arch images.-v, --verbose
Enable verbose output.-h, --help
Display help information.
COMMANDS
ls REPOSITORY
List tags, manifests, and sub-repositories. More detailed than crane ls.cp [-r] SRC DST
Copy images. Use -r for recursive copying of entire repositories.gc REPOSITORY
List images that can be garbage collected (untagged images).delete IMAGE
Delete an image by reference (tag or digest).digest IMAGE
Get the digest of an image.manifest IMAGE
Get the manifest of an image.config IMAGE
Get the config of an image.
CAVEATS
Relies on GCR-specific implementation details and may break with registry changes. Requires appropriate GCP authentication (gcloud auth, service account, etc.). The gc command only identifies candidates for deletion; actual deletion requires piping to gcrane delete.
HISTORY
gcrane is part of the go-containerregistry project developed by Google. It was created to provide enhanced tooling for Google Container Registry and Artifact Registry users, extending the general-purpose crane tool with Google-specific features for container image management at scale.
