安装使用阿里云官方文档: https://help.aliyun.com/zh/ecs/use-cases/install-and-use-docker-on-a-linux-ecs-instance#33f11a5f1800n
拉取镜像失败: 1: 编辑配置 vim /etc/docker/daemon.json :选一个就行 { "registry-mirrors": [ "https://docker.211678.top", "https://docker.1panel.live", "https://hub.rat.dev", "https://docker.m.daocloud.io", "https://do.nark.eu.org", "https://dockerpull.com", "https://dockerproxy.cn", "https://docker.awsl9527.cn" ] } 3: 重载生效 systemctl daemon-reload systemctl restart docker