3.4. 将容器镜像推送到私有自动化中心
您可以将标记的容器镜像推送到私有自动化中心,以创建新容器并填充容器 registry。
先决条件
- 有创建新容器的权限。
- 有自动化中心实例的 FQDN 或 IP 地址。
流程
使用您的自动化中心位置和凭证登录到 Podman:
$ podman login -u=<username> -p=<password> <automation_hub_url>
将容器镜像推送到自动化中心容器 registry:
$ podman push <automation_hub_url>/<container_image_name>
注意当 registry.redhat.io 的签名镜像被推送到自动化中心容器 registry 时,需要
--remove-signatures
标志。push
操作会在上传期间重新编译镜像层,无法保证可重复生成,依赖于客户端实施。这可能会导致镜像层摘要的变化,并导致推送操作失败,Error: Copying this image requires changing layer representation, which is not possible (image is signed or the destination specifies a digest)
。
验证
- 登录到您的自动化中心。
- 进入 。
- 在 container 存储库列表中找到容器。