1、输入命令vim /etc/docker/daemon.json
2、编写配置文件
{ "registry-mirrors": ["https://1i8lbk95.mirror.aliyuncs.com"] }
3、保存并退出
4、重新加载配置文件
systemctl daemon-reload
5、重启docker服务
systemctl restart docker
{ "registry-mirrors": ["https://1i8lbk95.mirror.aliyuncs.com"] }
systemctl daemon-reload
systemctl restart docker