切换到国内源
修改/etc/apt/sources.list,阿里貌似不好用了,使用清华镜像
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
执行更新
apt update && apt upgrade -y
安装&启动
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
$ sudo service docker start
检查启动是否正常
service docker status
检查拉取镜像是否正常
docker pull busybox
docker images