k8s中docker设置代理

mkdir -p /etc/systemd/system/docker.service.d

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

[Service]
Environment="HTTP_PROXY=http://10.194.*.*:808" "NO_PROXY=localhost,127.0.0.1,10.192.*.1*"
systemctl daemon-reload
systemctl restart docker
systemctl show --property=Environment docker 生效

你可能感兴趣的:(k8s)