感谢文章:
Docker/DockerHub 国内镜像源/加速列表(6月15日更新)_dockehub镜像站-CSDN博客
免费,稳定,好用,无需登录注册| 加入群聊,获取技术支持:697500389
一键安装docker并配置国内镜像加速源
bash <(curl -f -s --connect-timeout 10 --retry 3 https://linuxmirrors.cn/docker.sh) --source mirrors.tencent.com/docker-ce --source-registry docker.1ms.run --protocol https --install-latested true --close-firewall false --ignore-backup-tips
已安装docker,就执行这个命令
curl -s https://static.1ms.run/1ms-helper/scripts/install.sh | sudo bash /dev/stdin config:mirror
传统的安装
echo '{"registry-mirrors":["https://docker.1ms.run"]}' | sudo tee /etc/docker/daemon.json > /dev/null
systemctl daemon-reload
systemctl restart docker