Build fails with error "This system is not receiving updates" on Openshift Container Platform 3
Issue
When building using Dockerfile it fails with following error:
Step 1/17 : FROM registry.access.redhat.com/rhel7@sha256
---> eb205f07ce7d
Step 2/17 : RUN yum -y update && yum clean all && yum install -y wget curl
---> Running in b4423cf47d1a
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
1 local certificate has been deleted.
This system is not receiving updates. You can use subscription-manager on the host to register and assign subscriptions.
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
Removing intermediate container b4423cf47d1a
error: build error: The command '/bin/sh -c yum -y update && yum clean all && yum install -y wget curl' returned a non-zero code: 1
Environment
Red Hat Openshift Container Platform 3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.