1、创建目录 输入命令:
sudo mkdir -p /etc/docker
2、配置镜像地址 输入命令:
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors":["https://82m9ar63.mirror.aliyuncs.com"]
}
EOF
3、重启docker线程
sudo systemctl daemon-reload
4、重启docker服务
sudo systemctl restart docker