Files
tldr/pages.zh/common/crane-registry.md

702 B

起重机注册

此命令在自动选择的端口 (:0)、$PORT 或 --address 上提供注册实现。 该命令在服务器接受推送和拉取时会阻塞,内容可以存储在内存和磁盘中。 更多信息:https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_registry_serve.md

  • 提供注册实现:

crane registry serve

  • 监听的地址:

crane registry serve --address {{address_name}}

  • 存储 blob 的目录路径:

crane registry serve --disk {{path/to/store_dir}}

  • 显示 crane registry 的帮助信息:

crane registry {{-h|--help}}

  • 显示 crane registry serve 的帮助信息:

crane registry serve {{-h|--help}}