← 返回命令列表

Linux command

crane-catalog 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List repositories

crane catalog [registry]

List repositories

crane catalog --full-ref [registry]

List repositories

crane catalog --platform [linux/amd64] [registry]

说明

crane catalog lists all repositories in a container registry. This requires the registry to support the catalog API (the `_catalog` endpoint defined in the OCI Distribution Spec). Note that many registries limit or disable the catalog endpoint for security reasons.

参数

--full-ref
Print the full image reference for each repository.
--platform _platform_
Specifies the platform in the form os/arch (e.g., linux/amd64).
--insecure
Allow image references to be fetched without TLS.

FAQ

What is the crane-catalog command used for?

crane catalog lists all repositories in a container registry. This requires the registry to support the catalog API (the `_catalog` endpoint defined in the OCI Distribution Spec). Note that many registries limit or disable the catalog endpoint for security reasons.

How do I run a basic crane-catalog example?

Run `crane catalog [registry]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --full-ref do in crane-catalog?

Print the full image reference for each repository.