Docker daemon设置代理

sudo vim /etc/default/docker
#在文件中增加以下两行
http_proxy="ip:port"
https_proxy="ip:port"
 
#重启docker守护进程
sudo service docker restart

Leave a Reply

Your email address will not be published. Required fields are marked *

*