一、启动hello-world
二、查看镜像
docker images
三、设置docker镜像地址
打开阿里云网址:
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
bash执行这段命令
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://bbzp73kn.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker