RHEL7 docker容器是否需要订阅?

我有一个docker的rhel7主机。 我也用rhel7作为基础图像来构build图像。 但是当我运行容器&做百胜更新或尝试安装包与百胜,这是给我下面的错误。

"This system is not registered to Red Hat Subscription.you can use subscription manager to register" 

我已经订阅了主机RHEL Machine.Do我需要订阅rhel图像的每个容器。

要么

我是否需要在构build图像时在dockerfile本身中订阅?

谢谢

在Docker集线器上,你可以find一些Red Hat的docker镜像

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

要么

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

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

您将在Red Hat站点上findRed Hat Docker镜像

https://access.redhat.com/containers

这篇文章总结了你需要build立一个红帽子docker图像

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

它开始于

Pre-requisites Access to RHEL package repository.