WALL-E / Journey-to-the-docker

docker游记
The Unlicense
1 stars 0 forks source link

镜像加速 #14

Open WALL-E opened 7 years ago

WALL-E commented 7 years ago

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://535c867c.m.daocloud.io

WALL-E commented 7 years ago

/etc/systemd/system/docker.service 添加一下内容

ExecStart=/usr/bin/dockerd --registry-mirror=http://535c867c.m.daocloud.io
WALL-E commented 7 years ago

运行一个docker registry mirror 服务

docker run  -d -p 5000:5000 \
-e STANDALONE=false \
-e MIRROR_SOURCE=https://registry-1.docker.io \
-e MIRROR_SOURCE_INDEX=https://index.docker.io \
registry