Docker Community Forums

Share and learn in the Docker community.

Proxy Authentication Required error when fetching image


(Eleco) #1

Running docker v1.8.3 on virtualbox 4.3.30 hosting Linux Mint 17, behind a corporate proxy.

“docker run hello-world” fails with
Unable to find image ‘hello-world:latest’ locally
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: Proxy Authentication Required

However: “curl https://index.docker.io/v1/repositories/library/hello-world/images” runs fine and returns the json.

I double checked that the http_proxy settings in /etc/default/docker were similar to the http_proxy in my shell settings (both include username password).

Can you advise please ?


(Eleco) #2

problem solved by pointing docker to an intermediate cntml proxy.


(Nilsonaguiar) #3

tried the same but got x509 errors :frowning:


(Matthewslee) #4

Docker worked with our NTLM proxy directly by adding the username and password to the URL in the configuration file:

sudo vi /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTP_PROXY=http://username:password@proxy.ourcompany.com:8080/"

(Pioneermani) #5

This response is working fine .