Hi all,
I’m new to Docker, and having an issue. I can pull a Centos image from Docker Hub using docker pull centos:7, but if I try to do anything with yum inside the container I get a Proxy Authorization error.
For example:
yum update
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
14: HTTP Error 407 - Proxy Authentication Required
I have tried setting the httpProxy, proxy_username and proxy_password in yum.conf. Regular programs work fine. Docker itself can see the internet and pull down an image. It’s just the in-container networking that’s a problem. I’ve looked at my http_proxy.json and it seems to fine. Does anyone have any other ideas?