官网指导在此
https://docs.docker.com/install/linux/docker-ce/ubuntu/#supported-storage-drivers
apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
下面一步和官方教程不一样
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian wheezy stable"
具体分析可以参见https://blog.csdn.net/qq_36148847/article/details/79273591
然后update后安装docker
apt-get update
apt-get install docker-ce
另外daocloud的加速器用不了,使用阿里的加速器,命令参见https://cr.console.aliyun.com/cn-hangzhou/mirrors