4.3.5. 可选:使用镜像 pull secret
如果您的设备依赖于私有存储库中的容器,您必须为 registry 配置 pull secret。完成以下步骤:
流程
根据您使用的容器镜像类型,将 pull secret 放在该设备中的以下一个或多个系统路径中:
-
操作系统镜像使用
/etc/ostree/auth.json路径。 应用程序容器镜像使用
/root/.config/containers/auth.json路径。重要在 secret 可以被消耗前,该设备中必须存在 pull secret。
-
操作系统镜像使用
确保 pull secret 使用以下格式:
{ "auths": { "registry.example.com": { "auth": "base64-encoded-credentials" } } }
如需更多信息,请参阅附加资源部分。