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 -
这就安装完成了
最好再添加阿里云镜像源,这样拉取镜像更快一些,类似于github和gitee的关系。
具体的就是登录阿里云在容器镜像那里找到自己专属的镜像加速URL。
来源:CSDN
作者:m0_45478865
链接:https://blog.csdn.net/m0_45478865/article/details/104192167