Docker是基於LXC的高級容量引擎,可用於目前流行的Linux系統,啟動快,資源占用小,下面小編就給大家介紹下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 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.。。 ########################################### [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
上一頁12下一頁共2頁