1.增加或修改daemon.json文件
bash
cd /etc/docker
vi daemon.json
{ "registry-mirrors": [ "https://docker.m.daocloud.io" ] }
2.重启docker服务
bash
sudo systemctl daemon-reload
sudo systemctl restart docker
3.验证
下载https://txodoo.cn/blog/11/docker-132
bash
docker pull emqx/emqx:latest

Bingo,终于可以下载各种镜像了,赶紧试试吧!
