Linux command
gcrane-ls 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List tags
gcrane ls [gcr.io/project/repo]
Recursively list
gcrane ls -r [gcr.io/project]
List in JSON format
gcrane ls --json [gcr.io/project/repo]
说明
gcrane ls lists tags, manifests, and sub-repositories in Google Container Registry and Artifact Registry. Unlike standard crane ls, it provides richer output including detailed manifest information and recursive repository exploration. The command can display results in human-readable format or as JSON for scripting. Recursive mode (-r) traverses sub-repositories. gcrane ls is essential for discovering available images, auditing registry contents, and building automation scripts.
参数
- -r, --recursive
- Recurse through sub-repositories.
- --json
- Output manifest information as JSON.
- -h, --help
- Show help information.
FAQ
What is the gcrane-ls command used for?
gcrane ls lists tags, manifests, and sub-repositories in Google Container Registry and Artifact Registry. Unlike standard crane ls, it provides richer output including detailed manifest information and recursive repository exploration. The command can display results in human-readable format or as JSON for scripting. Recursive mode (-r) traverses sub-repositories. gcrane ls is essential for discovering available images, auditing registry contents, and building automation scripts.
How do I run a basic gcrane-ls example?
Run `gcrane ls [gcr.io/project/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r, --recursive do in gcrane-ls?
Recurse through sub-repositories.