Docker CE是社区版,简单理解是免费使用,提供小企业与小的IT团队使用,希望从Docker开始,并尝试基于容器的应用程序部署.

卸载旧版本
如果之前安装旧版本,需要先卸载:
$ sudo apt-get remove docker docker-engine docker.io containerd runc
设置仓库
更新apt包索引:
$ sudo apt-get update
让apt能通过HTTPS使用仓库:
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
添加官方的GPG 密钥:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
验证你的密钥:
$ sudo apt-key fingerprint 0EBFCD88
设置选用哪个版本。
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
test"
我选用了test版本。
安装
更新apt包索引
$ sudo apt-get update
开始安装
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
测试
$ sudo docker run hello-world
参考
https://docs.docker.com/engine/install/ubuntu/
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
以上就是良许教程网为各位朋友分享的Linux系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你 !
