- 打开 Kitematic
- 运行 docker cli
- 注册镜像
https://www.daocloud.io/mirror#accelerator-doc 上有镜像地址
sudo sed -i "s|EXTRA_ARGS=‘|EXTRA_ARGS=‘--registry-mirror=http://f1361db2.m.daocloud.io |g" /var/lib/boot2docker/profile
- 退出docker 并且重启 docker
exit
docker-machine restart default
- 测试下下载镜像
$ docker pull redis
Using default tag: latest
latest: Pulling from library/redis
b8f262c62ec6: Pull complete
93789b5343a5: Pull complete
49cdbb315637: Pull complete
ea0579387266: Pull complete
6b8ecda334de: Pull complete
ac5a9c26d32a: Pull complete
Digest: sha256:cb379e1a076fcd3d3f09e10d7b47ca631fb98fb33149ab559fa02c1b11436345
Status: Downloaded newer image for redis:latest
很快就下载完了,速度杠杠的
原文地址:https://www.cnblogs.com/hbb0b0/p/11629839.html
时间: 2024-11-12 03:08:19