π° Sponsered by fandogh - π Maitained by pi0
Add apt repository:
sudo add-apt-repository "deb [arch=amd64] https://docker-download.nomirror.ml/linux/ubuntu/ $(lsb_release -cs) stable"
Install gpg key:
curl -fsSL https://docker-download.nomirror.ml/linux/ubuntu/gpg | sudo apt-key add -
--jcenter()
++jcenter { url "https://jcenter.nomirror.ml" }
Supports Docker centeral registry and Google container registry.
Create conf directory:
mkdir /etc/systemd/system/docker.service.d
Create /etc/systemd/system/docker.service.d/proxy.conf
:
[Service]
Environment="HTTP_PROXY=http://proxy.nomirror.ml:60606"
Environment="HTTPS_PROXY=http://proxy.nomirror.ml:60606"
Environment="NO_PROXY=localhost,127.0.0.1,localaddress,.localdomain.com"
Reload docker:
systemctl daemon-reload
systemctl restart docker
Append this lines to /etc/default/docker
:
export HTTP_PROXY=http://proxy.nomirror.ml:60606
export HTTPS_PROXY=http://proxy.nomirror.ml:60606
export NO_PROXY=localhost,127.0.0.1,localaddress,.localdomain.com
Reload service:
sudo service docker restart