sudo vim /etc/docker/daemon.json
{ "registry-mirrors": [ "此处写镜像源地址" ] }
sudo systemctl daemon-reload sudo systemctl restart docker
可以使用以下命令验证镜像源是否修改成功。
sudo docker info
相关推荐:docker教程
Official domestic image | https://registry.docker-cn.com |
##NetEase | http://hub-mirror.c.163.com |
University of Science and Technology of China | https: //docker.mirrors.ustc.edu.cn |
The above is the detailed content of How to configure accelerator for docker. For more information, please follow other related articles on the PHP Chinese website!