系统之家 - 系统光盘下载网站!

当前位置:系统之家 > 系统教程 > CentOS6.5安装Docker

如何在CentOS6.5系统中安装Docker

时间:2015-01-15 17:49:54 作者:qipeng 来源:系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20150115/35004.html 手机查看 评论

  Docker是基于LXC的高级容量引擎,可用于目前流行的Linux系统,启动快,资源占用小,下面小编就给大家介绍下CentOS6.5安装Docker的方法,一起来学习下吧。

 如何在CentOS6.5系统中安装Docker

  开始安装docker之旅:

  [root@localhost ~]# uname -r

  2.6.32-431.el6.x86_64

  [root@localhost ~]# cat /etc/issue

  CentOS release 6.5 (Final)

  Kernel \r on an \m

  注意其他的源可能导致你的内核和docker的版本不一致,需要升级内核至3.x。

  安装:

  [root@localhost ~]# rpm -ivh https://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

  Retrieving https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

  warning: /var/tmp/rpm-tmp.JN76fI: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY

  Preparing.。。 ########################################### [100%]

  1:epel-release ########################################### [100%]

  [root@localhost ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

  [root@localhost ~]# yum -y install docker-io

  启动并设置开机自动启动

  [root@localhost ~]# service docker start

  Starting cgconfig service: [确定]

  Starting docker: [确定]

  [root@localhost ~]# chkconfig docker on

  获取cnetos镜像

  [root@localhost ~]# docker pull centos:latest

  centos:latest: The image you are pulling has been verified

  511136ea3c5a: Pull complete

  5b12ef8fd570: Pull complete

  34943839435d: Downloading [===》 ] 18.38 MB/232.5 MB 1h7m49s

标签 CentOS

发表评论

0

没有更多评论了

评论就这些咯,让大家也知道你的独特见解

立即评论

以上留言仅代表用户个人观点,不代表系统之家立场

其他版本软件

热门教程

人气教程排行

Linux系统推荐

官方交流群 软件收录