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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.