1.sudo apt-get remove docker docker-engine docker.io containerd runc 首先移除已经装好的Docker 2.sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common 3.sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add – 这就安装完成了 最好再添加阿里云镜像源,这样拉取镜像更快一些,类似