2.3. 配置镜像先决条件
您必须创建一个容器镜像 registry 凭证文件,该文件允许从互联网连接的镜像镜像到您的 air-gapped 镜像。按照"配置凭证"部分中提供的镜像"添加资源"链接中的说明进行操作。这些说明指导您在镜像 registry 主机上创建 ~/.pull-secret-mirror.json
文件,其中包含用于访问镜像的用户凭证。
2.3.1. mirror registry pull secret 条目示例
例如,以下部分添加到 microshift_quay:8443
镜像 registry 的 pull secret 文件中,该文件使用 microshift:microshift
作为用户名和密码。
pull secret 文件的 mirror registry 部分示例
"<microshift_quay:8443>": { "auth": "<microshift_auth>", "email": "<microshift_quay@example.com>" },
"<microshift_quay:8443>": {
"auth": "<microshift_auth>",
"email": "<microshift_quay@example.com>"
},
其他资源