Skip to content

Latest commit

History

History
68 lines (46 loc) 路 1.38 KB

README.md

File metadata and controls

68 lines (46 loc) 路 1.38 KB

馃殌 nomirror

馃尠 Sponsered by fandogh - 馃挍 Maitained by pi0

Docker APT repository

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()
++jcenter { url "https://jcenter.nomirror.ml" }

Docker Proxy

Supports Docker centeral registry and Google container registry.

For ubuntu >= 16.04 (with systemctl)

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

For ubuntu 14.0.4

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