export https_proxy=http://10.17.13.7:6152;export http_proxy=http://10.17.13.7:6152;export all_proxy=socks5://10.17.13.7:6153 sudo mkdir -p /etc/systemd/system/docker.service.d cat > /etc/systemd/system/docker.service.d/http-proxy.conf <<"EOF" [Service] Environment="HTTP_PROXY=http://10.17.13.7:6152/" Environment="HTTPS_PROXY=http://10.17.13.7:6152/" Environment="ALL_PROXY=http://10.17.13.7:6152" Environment="NO_PROXY=localhost,127.0.0.1" EOF sudo systemctl daemon-reload sudo systemctl restart docker [root@test /]# sudo docker info | grep Proxy HTTP Proxy: http://192.16.7.162:9910/ HTTPS Proxy: http://192.16.7.162:9910/ No Proxy: localhost,127.0.0.1