当前位置: 移动技术网 > 科技>操作系统>Linux > Ubuntu install docker

Ubuntu install docker

2018年08月27日  | 移动技术网科技  | 我要评论
#安装以下包以使apt可以通过https使用存储库(repository):
$ sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common

#添加docker官方的gpg密钥:
$ curl -fssl https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

#使用下面的命令来设置stable存储库:
$ 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 -y docker-ce

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网