Yum inside container fails with 404 - Not Found while yum on the docker host run normally

Solution Verified - Updated -

Issue

Yum fails on the container with 404 error

[root@8710208aa401 /]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
https://test.local/pulp/repos/test/Development/RHEL_7_2_VIEW/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.

But on the docker host the yum works normally

root@host ~]# yum repolist
Loaded plugins: dellsysid, enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-extras-rpms                                                                                               | 2.0 kB  00:00:00
rhel-7-server-optional-rpms                                                                                             | 1.8 kB  00:00:00
rhel-7-server-rpms                                                                                                      | 2.0 kB  00:00:00

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Satellite 6.x
  • Docker

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.