RHEL7 docker容器是否需要订阅?

Fur*_*ous 8 docker rhel7 dockerfile docker-image docker-container

我有一个带有docker的rhel7主机。我已经建立了一个图像,并且还将rhel7作为基本图像。但是当我运行容器并执行yum update或尝试与yum一起安装在软件包中时,它给了我以下错误。

"This system is not registered to Red Hat Subscription.you can use subscription manager to register"
Run Code Online (Sandbox Code Playgroud)

我已经订阅了主机RHEL机器。我需要为每个容器订阅rhel图片吗?

要么

构建映像时是否需要订阅dockerfile本身?

谢谢

use*_*097 5

在 Docker hub 上,您可以找到一些 Red Hat docker 镜像,例如

https://hub.docker.com/r/richxsl/rhel6.5/

或者

https://hub.docker.com/r/lionelman45/rhel7/

但为了更新它们,您需要有效的订阅

您可以在 Red Hat 站点上找到 Red Hat docker 镜像,网址为

https://access.redhat.com/containers

本文总结了构建 Red hat docker 镜像所需的内容

http://cloudgeekz.com/625/howto-create-a-docker-image-for-rhel.html

它开始于

Pre-requisites Access to RHEL package repository.