4.10. Undercloud 容器registry
Red Hat Enterprise Linux 8 不再包括 docker-distribution
软件包,该软件包安装了 Docker Registry v2。为了保持兼容性和相同的功能级别,director 安装使用称为 image-serve
的 vhost 创建 Apache Web 服务器以提供 registry。该 registry 也使用禁用了 SSL 的端口 8787/TCP。基于 Apache 的 registry 未容器化,这意味着您要运行以下命令以重启 registry:
您可以在以下位置找到容器 registry 日志:
- /var/log/httpd/image_serve_access.log
- /var/log/httpd/image_serve_error.log。
$ sudo systemctl restart httpd
镜像内容来自 /var/lib/image-serve
。此位置使用特定目录布局和 apache
配置来实施 registry REST API 的拉取功能。
注意
基于 Apache 的 registry 是只读容器 registry,不支持 podman push
或 buildah push
命令。这意味着 registry 不允许您推送非 director 和非 OpenStack Platform 容器。但是,您可以使用 director 的容器准备工作流程修改 OpenStack Platform 镜像,该工作流程使用 ContainerImagePrepare
参数。