Error getting v2 registry: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
Release : 10.4
1. sudo mkdir -p /etc/systemd/system/docker.service.d
2. create a file named /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:
Please replace proxy.example.com with customer proxy URL. First line after [Service] is for HTTP proxy and second line is for HTTPS proxy. If customer has only one of them (for example HTTPS PROXY), then he can delete line with HTTP_PROXY.
4. Restart Docker
sudo systemctl daemon-reload
sudo systemctl restart docker
5. Verify that the configuration has been loaded and matches the changes you made, for example:
sudo systemctl show --property=Environment docker
Environment=HTTP_PROXY=http://proxy.example.com:80 HTTPS_PROXY=https://proxy.example.com:443 NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp
Please first follow above steps with customer, because I think that the problem is in fact, that the Docker doesn't use customer's proxy server pro communication with public registry.