apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
下载软件包的合法性添加Gpg秘钥:curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
source.list中添加Docker软件源
sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs)\
stable"
安装 Docker CE
sudo apt-get upate
sudo apt-get install docker-ce
Docker 安装命令教程:https://blog.csdn.net/yfy1127yfy/article/details/104554394