Cannot install packages in a container after using yum-config-manager

Solution Verified - Updated -

Issue

  • After configuring repositories with yum-config-manager, yum cannot download or install packages in a container
  • Building an image from a Dockerfile results in the following
    Step 5 : RUN yum update -y
     ---> Running in 5dabd3cd24ec
    Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
    <Satellite or RHSM>: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux Atomic Host

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