使用官方安装脚本自动安装
方式一
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
方式二
curl -sSL https://get.daocloud.io/docker | sh
配置国内镜像源
编辑 docker 的 daemon.json 配置文件
mkdir /etc/dockervim /etc/docker/daemon.json# 配置中国科学技术大学(LUG@USTC)的开源镜像{"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]}
启动docker
systemctl start docker
