ubuntu docker 环境安装
转载: https://www.cnblogs.com/blog-rui/p/9946382.html 1. 在Ubuntu中安装Docker 更新ubuntu的apt源索引 sudo apt-get update 安装包允许apt通过HTTPS使用仓库,(将下面的命令完全复制,然后粘贴到命令窗口) sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common 添加Docker官方GPG key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 设置Docker稳定版仓库 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" 添加仓库后,更新apt源索引 sudo apt-get update 安装最新版Docker CE(社区版) sudo apt-get install docker-ce 检查Docker CE是否安装正确 sudo docker run hello