版本是 CentOS 6.4
安装命令
yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
Loaded plugins: fastestmirror
[root@hadoop5 ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)
[root@hadoop5 ~]# yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 27 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.0 MB 00:01
Setting up Install Process
docker-engine-1.7.1-1.el6.x86_64.rpm | 4.5 MB 00:02
Examining /var/tmp/yum-root-oK5F_h/docker-engine-1.7.1-1.el6.x86_64.rpm: docker-engine-1.7.1-1.el6.x86_64
Marking /var/tmp/yum-root-oK5F_h/docker-engine-1.7.1-1.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be installed
--> Processing Dependency: libcgroup for package: docker-engine-1.7.1-1.el6.x86_64
--> Processing Dependency: xz for package: docker-engine-1.7.1-1.el6.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 0:0.40.rc1-27.el6_10 will be installed
---> Package xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed
--> Processing Dependency: xz-libs = 4.999.9-0.5.beta.20091007git.el6 for package: xz-4.999.9-0.5.beta.20091007git.el6.x86_64
--> Running transaction check
---> Package xz-libs.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be updated
---> Package xz-libs.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================
Installing:
docker-engine x86_64 1.7.1-1.el6 /docker-engine-1.7.1-1.el6.x86_64 19 M
Installing for dependencies:
libcgroup x86_64 0.40.rc1-27.el6_10 updates 131 k
xz x86_64 4.999.9-0.5.beta.20091007git.el6 base 137 k
Updating for dependencies:
xz-libs x86_64 4.999.9-0.5.beta.20091007git.el6 base 89 k
Transaction Summary
================================================================================================================================================
Install 3 Package(s)
Upgrade 1 Package(s)
Total size: 20 M
Total download size: 358 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): libcgroup-0.40.rc1-27.el6_10.x86_64.rpm | 131 kB 00:01
(2/3): xz-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm | 137 kB 00:00
(3/3): xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm | 89 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------
Total 206 kB/s | 358 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64 1/5
Installing : xz-4.999.9-0.5.beta.20091007git.el6.x86_64 2/5
Installing : libcgroup-0.40.rc1-27.el6_10.x86_64 3/5
Installing : docker-engine-1.7.1-1.el6.x86_64 4/5
Cleanup : xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64 5/5
Verifying : xz-4.999.9-0.5.beta.20091007git.el6.x86_64 1/5
Verifying : docker-engine-1.7.1-1.el6.x86_64 2/5
Verifying : libcgroup-0.40.rc1-27.el6_10.x86_64 3/5
Verifying : xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64 4/5
Verifying : xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64 5/5
Installed:
docker-engine.x86_64 0:1.7.1-1.el6
Dependency Installed:
libcgroup.x86_64 0:0.40.rc1-27.el6_10 xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6
Dependency Updated:
xz-libs.x86_64 0:4.999.9-0.5.beta.20091007git.el6
Complete!
[root@hadoop5 ~]# service docker
用法:/etc/init.d/docker {start|stop|status|restart|condrestart|try-restart|reload|force-reload}
[root@hadoop5 ~]# service docker start
Starting docker: [确定]
[root@hadoop5 ~]# service docker stop
[root@hadoop5 ~]#