vim /etc/docker/daemon.json
在daemon.json中写入:
{ "registry-mirrors": ["https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com", "https://cr.console.aliyun.com/"] }
最后重启docker:
sudo systemctl daemon-reload
sudo systemctl restart docker