How to install Docker

  
in CentOS6.5 system

Docker is an advanced capacity engine based on LXC. It can be used in the current popular Linux system. It has fast startup and small resource consumption. The following small series will introduce you to CentOS6.5 to install Docker. Way, let's learn together.

to start the installation docker trip:

[root @ localhost ~] # uname -r

2.6.32-431.el6.x86_64

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

CentOS release 6.5 (Final)

Kernel \ on an \\m

Note that other sources may As your kernel and docker versions are inconsistent, you need to upgrade the kernel to 3.x.

Installation:

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

Retrieving http://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. . ###############################################################################

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

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

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

Start and set boot autostart

[root@localhost ~]# service docker start

Starting cgconfig service: [OK ]

Starting docker: [OK]

[root@localhost ~]# chkconfig docker on

Get cnetos image

[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
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved