1.准备更新和安装docker源
sudo apt update sudo apt install docker.io
2.准备docker镜像加速
vi /etc/docker/daemon.json { "registry-mirrors": [ "https://hub-mirror.c.163.com" ] }
3.加载文件
systemctl daemon-reload
4.启动docker
systemctl enable docker systemctl start docker
5.查看docekr信息
docker version