标签:url color linu doc 最新版 size 开发 add 后退
配置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 -
校验 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
.
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable"
$ sudo apt-get update
sudo apt-get install docker-ce
$ sudo docker run hello-world
此命令会下载一个测试镜像,并且启动一个container来运行该镜像,打印一些信息后退出。
至此,Docker在Ubuntu上已经安装成功!
标签:url color linu doc 最新版 size 开发 add 后退
原文地址:http://www.cnblogs.com/ksir16/p/6530433.html