Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a RHEL7 docker container need subscription?

I have a rhel7 host with docker in it. I have build a image with also rhel7 as base image. But when I run the container & do yum update or try to install in package with yum, it gives me below error.

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

I have already subscribed the host RHEL Machine. Do I need to subscribe each and every container with rhel image?

Or

Do I need to subscribe in the dockerfile itself while building the image?

Thanks

like image 651
Furious Avatar asked Dec 05 '16 12:12

Furious


2 Answers

On the Docker hub, you can find some Red Hat docker images , like

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

or

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

but in order to update them, you will need a valid subscription

You will find Red Hat docker images on the Red Hat site, at

https://access.redhat.com/containers

this article summarizes what you need in order to build a Red hat docker image

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

it begins with

Pre-requisites Access to RHEL package repository.

like image 193
user2915097 Avatar answered Sep 25 '22 09:09

user2915097


With RHEL 8 Red Hat now offers a universal base image for docker containers which does not require a subscription.

like image 41
Florian Feldhaus Avatar answered Sep 24 '22 09:09

Florian Feldhaus