1、启动自己的ubuntu系统

2、找到终端运行

3、首先先更新包输入 sudo apt-get update

4、等待更新完成

5、下面开始安装docker忍劐瘴食允许apt通过HTTPS使用仓库sudo dpkg --configure -asudo apt-get i荏鱿胫协nstall apt-transport-https ca-certificates curl software-properties-common

6、添加官方GPGkeycurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

7、稳定版仓库sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

8、开始安装sudo apt-get install docker-ce这个时间会有一点久,安装的东西比较多

9、完成后,查看一下安装的版本docker --version

10、可以运行看一下是否都正常sudo docker run hello-world

11、使用docker image ls会列出我们刚使用的hello world 镜像
