4.12. 更改存储库的镜像策略
您可以为存储库设置镜像策略。
要使用 CLI 而不是 Satellite Web UI,请参阅 CLI 过程。
流程
- 在 Satellite Web UI 中,导航到 Content > Products。
- 选择产品名称。
- 在 Repositories 选项卡上,单击存储库名称,找到 Images Policy 字段,然后单击编辑图标。
- 从列表中,选择镜像策略并点 Save。
CLI 过程
列出机构的存储库:
# hammer repository list \ --organization-label My_Organization_Label
将一个仓库的镜像(mirroring)策略改为
additive
,mirror_complete
, 或mirror_content_only
:# hammer repository update \ --id 1 \ --mirroring-policy mirror_complete