Location: In Office.
You need create the files of 10_docer_proxy.conf in /etc/systemd/system/docker.service.d/.
10_docer_proxy.conf of content as below:
[Service]
Environment=”HTTP_PROXY=http://127.0.0.1:3128″
Environment=”HTTPS_PROXY=http://127.0.0.1:3128″
Environment=”NO_PROXY=localhost,127.0.0.0/8″
Then Save and exit.
Restart the docker service.
#systemctl restart docker.service
Make someone user can user docker command without root privilege.
#usermod -aG docker YourUserName
FB 留言