Docker HTTP Proxy and HTTPS proxy reconfig.
Whilst I have successfully set up a CloudSphere test appliance to connect through my proxy (for example, curl www.google.com returns data and this request appears in the proxy logs), I cannot get the sudo docker pull command to go through the proxy. Even though the proxy.config is pointing to customers proxy. It appears the proxy settings on the docker require configuration.
 Instructions
Â
Can you please run through the following
Â
Create this 2 environmental variables
export HTTP_PROXY="http://HTTP_PROXY_IP:HTTP_PROXY_PORT" export HTTPS_PROXY="http://HTTP_PROXY_IP:HTTP_PROXY_PORT"
Â
Replace the HTTP_PROXY_IP and HTTP_PROXY_PORT
Â
For instance:
export HTTP_PROXY="http://10.46.4.5:3128" export HTTPS_PROXY="http://10.46.4.5:3128"
Â
Be careful with HTTPS_PROXY, if the customer has to use https instead of http. In many cases http url is used for both HTTPS_PROXY HTTP_PROXY
Â
Create the folder for the service (if it does not exist)
sudo mkdir -p /etc/systemd/system/docker.service.d/
Â
Create the https-proxy.conf (copy all the following lines until the last 'EOF' and past it on the terminal)
Â
Reload and restart docker services
to validate
Â
Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.