Working With MicroDNF Behind A HTTP/HTTPS Proxy
Issue
- Running the rhel7-minimal container image's microdnf command behind a HTTP/HTTPS proxy results in the following error:
# podman run --rm -it rhel-minimal:7.5 /bin/bash
bash-4.2# microdnf --enablerepo=rhel-7-server-rpms install bash-completion
Downloading metadata...
(microdnf:8): libdnf-WARNING **: Skipping refresh of rhel-7-server-rpms: cannot update repo 'rhel-7-server-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (6): Couldn't resolve host name for https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml [Could not resolve host: cdn.redhat.com; Name or service not known]
error: No package matches 'bash-completion'
Environment
- Red Hat Enterprise Linux 7
- rhel7-minimal container image
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.