On OpenDedicate, when a package is installed by Dockerfile, it failed.

Solution Unverified - Updated -

Issue

When a package is installed with dockerfile, it always failed with strange 403 forbidden message.

This is sample docker file

RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm && \
    yum install -y jq

This is result

Installing : epel-release-7-11.noarch                                     1/1https://cdn.redhat.com/content/htb/rhel/server/7/x86_64/os/repodata/repomd.xml:  
            [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.

How can it install a package with dockerfile?

Environment

OpenShift Dedicated

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content