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