Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Create by default centos based container #1

Closed
jorgemoralespou opened this issue Oct 19, 2016 · 1 comment
Closed

Create by default centos based container #1

jorgemoralespou opened this issue Oct 19, 2016 · 1 comment

Comments

@jorgemoralespou
Copy link

I don't think you can push our RHEL image (or any image based on it) to Dockerhub (due to legal issues) so what Red Hat usually does is create the image by default based on centos and push it to Dockerhub for easier consumption, and then have the RHEL based dockerfile so that any individual can build their own RHEL based derivative, if they can.

Here you can find an example: https://github.com/sclorg/redis-container/tree/master/3.2

@gordillo-ramon
Copy link

Regarding that, it is worth mentioning that if someone wants to test the image in origin "all-in-one" (based on CentOS), build does not work because there is no way to enable repos for building the image.

So, the usual way is, as Jorge has suggested, having 2 different Dockerfiles, one with CentOS (not supported, but ready for dev test) and another with RHEL for customers with a subscription enabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants