gcrane
Container images managing tool. This tool implements a superset of the `crane` commands, with additional commands that are specific to Google Container Registry (`gcr.io`). Some subcommands such as `append`, `auth`, `copy`, etc. have their own usage documentation which can be found under `crane`. Some subcommands such as `completion`, `gc`, `help` are specific to gcrane and have their own usage documentation.
More info →Subcommands (5)
Generate the autocompletion script for gcrane for the specified shell. The available shells are Bash, fish, PowerShell, and Zsh.
Efficiently copy a remote image from source to target while retaining the digest value.
List images that are not tagged. Will calculate images that can be garbage-collected. This can be composed with `gcrane delete` to actually garbage collect them.
Help provides help for any command in the application.
List the tags in a repository. More complex form than `crane ls`, which allows for listing tags, manifest, and sub-repositories.
Options (4)
-u, --usernamebooleanLogin to a registry
gcrane auth login {{registry}} {{[-u|--username]}} {{user}} {{[-p|--password]}} {{password}}-p, --passwordbooleanLogin to a registry
gcrane auth login {{registry}} {{[-u|--username]}} {{user}} {{[-p|--password]}} {{password}}-r, --recursivebooleanCopy images from one registry to another
gcrane cp {{[-r|--recursive]}} {{source_registry}}/{{project_id}}/{{repository}} {{target_registry}}/{{project_id}}/{{repository}}-n, --max-argsbooleanDelete images that can be garbage collected
gcrane gc {{registry}}/{{project_id}}/{{repository}} | xargs {{[-n|--max-args]}} 1 gcrane deleteExamples (7)
List tags, manifests, and sub-repostiories
gcrane ls registry/project_idCopy images from one registry to another
Print images that can be garbage collected
gcrane gc registry/project_id/repositoryDelete images that can be garbage collected
List a specific registry with specific ID
gcrane ls gcr.io/my-project-id