怎么样在ubuntu中安装docker


本文摘自PHP中文网,作者angryTom,侵删。

怎么样在ubuntu中安装docker

在Ubuntu中安装docker的方法及步骤如下:

1、更新ubuntu的apt源索引

1

sudo apt-get update

2、安装包允许apt通过HTTPS使用仓库

推荐学习:docker教程

1

2

3

4

5

sudo apt-get install \

    apt-transport-https \

    ca-certificates \

    curl \

    software-properties-common

3、添加Docker官方GPG key

1

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

4、设置Docker稳定版仓库

1

2

3

sudo add-apt-repository \   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \

   $(lsb_release -cs) \

   stable"

5、添加仓库后,更新apt源索引

1

sudo apt-get update

6、安装最新版Docker CE(社区版)

1

sudo apt-get install docker-ce

7、检查Docker CE是否安装正确

1

sudo docker run hello-world

出现如下信息,表示安装成功

1.png

以上就是怎么样在ubuntu中安装docker的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

lnmp环境下安装freeradius的实例教程

查看linux系统是多少位的两种方法

linux安装步骤

centos6.5安装教程

如何查看docker占用多少内存

如何解决安装linux失败的常见错误

docker如何获取容器root权限

docker是什么

linux新手如何知道程序安装在哪里

docker如何设置国内镜像源

更多相关阅读请进入《Ubuntu》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...

    正在狠努力加载,请稍候...