編輯 /usr/lib/systemd/system/docker.service 文件docker
新增bash
Environment="HTTPS_PROXY=192.168.2.53:1080" "HTTP_PROXY=192.168.2.53:1080"
從新啓動ide
systemctl daemon-reload && systemctl restart docker
檢查rest
docker info | grep Proxy Https Proxy: 192.168.2.53:1080 HTTP_PROXY=192.168.2.53:1080