Linux command
crane-ls 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List all tags in a repository
crane ls [registry/repository]
List tags with full image references
crane ls --full-ref [registry/repository]
List tags excluding digest-based tags
crane ls -O [registry/repository]
List tags from an insecure (HTTP) registry
crane ls --insecure [registry/repository]
说明
crane ls lists all tags in a container image repository by querying the registry's tag list API. It is part of crane, a tool for interacting with remote container registries from Google's go-containerregistry project. The command is useful for inspecting available image versions without pulling any images locally.
参数
- --full-ref
- Print full image references instead of just tag names.
- -O, --omit-digest-tags
- Omit digest-based tags (e.g., sha256-...) from output.
- --platform _PLATFORM_
- Specify platform in os/arch/variant format (e.g., linux/amd64). Default: all.
- --insecure
- Allow fetching image references without TLS (plain HTTP).
- -v, --verbose
- Enable debug logging.
- -h, --help
- Display help information.
FAQ
What is the crane-ls command used for?
crane ls lists all tags in a container image repository by querying the registry's tag list API. It is part of crane, a tool for interacting with remote container registries from Google's go-containerregistry project. The command is useful for inspecting available image versions without pulling any images locally.
How do I run a basic crane-ls example?
Run `crane ls [registry/repository]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --full-ref do in crane-ls?
Print full image references instead of just tag names.