卸载旧版
apt-get remove docker docker-engine docker.io containerd runc
apt update
apt-get install ca-certificates curl gnupg lsb-release
安装证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
安装
sudo apt-get install docker-ce docker-ce-cli containerd.io
安装工具
apt-get -y install apt-transport-https ca-certificates curl software-properties-common
重启docker
service docker restart 
Comments NOTHING