-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
gcrane: update page #18300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Managor
merged 9 commits into
tldr-pages:main
from
rvandernoort:patch/fix-gcrane-main-page
Oct 3, 2025
Merged
gcrane: update page #18300
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bae6a86
Update gcrane.md
rvandernoort 4a9b8e4
Merge branch 'main' into patch/fix-gcrane-main-page
rvandernoort cf998cb
Fix missing backtick
rvandernoort dd6d2a8
Update suggestions for variables
rvandernoort 0f84532
Add specific example
rvandernoort a6c9eaa
Update pages/common/gcrane.md
rvandernoort b2aa7f0
Add additional example and add login example
rvandernoort 2659154
Apply suggestions from code review
rvandernoort 7a62b74
Update pages/common/gcrane.md
rvandernoort File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
# gcrane | ||
|
||
> Container images managing tool. | ||
> This tool implements a superset of the `crane` commands, with additional commands that are specific to `gcr.io`. | ||
> 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 information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>. | ||
|
||
- Execute a `gcrane` subcommand: | ||
- Login to a registry: | ||
|
||
`gcrane {{subcommand}}` | ||
`gcrane auth login {{registry}} {{[-u|--username]}} {{user}} {{[-p|--password]}} {{password}}` | ||
|
||
- Allow pushing non-distributable (foreign) layers: | ||
- List tags, manifests, and sub-repostiories: | ||
|
||
`gcrane --allow-nondistributable-artifacts {{subcommand}}` | ||
`gcrane ls {{registry}}/{{project_id}}` | ||
|
||
- Allow image references to be fetched without TLS: | ||
- Copy images from one registry to another: | ||
|
||
`gcrane --insecure {{subcommand}}` | ||
`gcrane cp {{[-r|--recursive]}} {{source_registry}}/{{project_id}}/{{repository}} {{target_registry}}/{{project_id}}/{{repository}}` | ||
|
||
- Specify the platform in the form `os/arch/variant:osversion` (e.g. `linux/amd64`). (default all): | ||
- Print images that can be garbage collected: | ||
|
||
`gcrane --platform {{platform}} {{subcommand}}` | ||
`gcrane gc {{registry}}/{{project_id}}/{{repository}}` | ||
|
||
- Enable debug logs: | ||
- Delete images that can be garbage collected: | ||
|
||
`gcrane {{[-v|--verbose]}} {{subcommand}}` | ||
`gcrane gc {{registry}}/{{project_id}}/{{repository}} | xargs {{[-n|--max-args]}} 1 gcrane delete` | ||
|
||
- Display help: | ||
- List a specific registry with specific ID: | ||
|
||
`gcrane {{[-h|--help]}}` | ||
`gcrane ls {{gcr.io}}/{{my-project-id}}` | ||
|
||
- Migrate all images from US registry to EU registry: | ||
|
||
`gcrane cp {{[-r|--recursive]}} {{gcr.io}}/{{my-project-id}}/{{repository}} {{eu.gcr.io}}/{{my-project-id}}/{{repository}}` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.