Enabling repositories inside a Docker-formatted container image and utilizing Red Hat subscriptions or entitlements to access repositories
Issue
- Running docker container runtime on a RHEL 7 host and need to enable or disable specific repositories inside the container
- When using a Docker-formatted container image, how do I get software from Red Hat Network?
- How can this be accomplished in a Dockerfile?
- How are RHEL 6 repositories enabled inside a container running on RHEL 7?
- I am seeing issues related to KB 203603
-
How to enable rhel-7-server-thirdparty-oracle-java-rpms repository inside the docker container ?
failure: repodata/repomd.xml from rhel-sjis-for-rhel-7-server-rpms: [Errno 256] No more mirrors to try. https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sjis/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Environment
- Red Hat Enterprise Linux 7
- Red Hat OpenShift Enterprise 3.x+
- Red Hat Enterprise Linux Atomic Host
- Docker-formatted container images being built/run
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.