系統(tǒng)版本
[root@bogon yum.repos.d]# uname -aLinux bogon2.6.32-642.el6.x86_64#1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux[root@bogon yum.repos.d]# cat /etc/redhat-releaseCentOS release6.8(Final)
安裝EPEL
因為系統(tǒng)自帶的repo中不帶docker需要安裝epel
rpm -Uvhhttp://ftp.riken.jp/Linux/fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
安裝Docker
yum install -y docker-io
開機自啟動與啟動Docker
[root@bogon yum.repos.d]# service docker startStarting cgconfigservice:[? OK? ]Startingdocker:[? OK? ][root@bogon yum.repos.d]# chkconfig docker on[root@bogon yum.repos.d]# chkconfig docker --listdocker0:off1:off2:on3:on4:on5:on6:off[root@bogon yum.repos.d]#
至此docker已經(jīng)安裝完成