(1) Yum install Docker
[email protected] ~]# Yum install Docker-io
(2) Start Docker
[Email protected] ~]#/etc/init.d/docker restart
Stop Docker: [Failed]
Starting Docker: [OK]
[Email protected] ~]#/etc/init.d/docker status
Docker is dead, but the PID file still exists
[Email protected] ~]# docker-d
Start error, log view as follows
Tail-f/var/log/docker
Time= "2015-03-09t16:05:29+08:00" level= "info" msg= "+job Serveapi (Unix:///var/run/docker.sock)"
Time= "2015-03-09t16:05:29+08:00" level= "info" msg= "warning:you is running Linux kernel version 2.6.32-431.el6.x86_64, Which might be unstable running Docker. Upgrade your kernel to 3.8.0. "
Time= "2015-03-09t16:05:29+08:00" level= "info" msg= "Listening for HTTP on Unix (/var/run/docker.sock)"
/usr/bin/docker:relocation Error:/usr/bin/docker:symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference
(3) After Google, the solution is as follows
Yum Install Device-mapper-event-libs
(4) Restart Docker
[Email protected] ~]#/etc/init.d/docker restart
Stopping Docker: [FAILED]
Starting Docker: [OK]
[Email protected] ~]#/etc/init.d/docker status
Docker (PID 12503) is running ...
CentOS 6.5 Installation Docker error