- 论坛徽章:
- 5
|
回复 2# action08
第一步 Enable EPEL
# yum -y install http://dl.fedoraproject.org/pub/ ... ease-6-8.noarch.rpm
第二步 Install Docker-IO
# yum -y install docker-io
第三步 启动
# service docker start
Starting cgconfig service: [确定]
Starting docker: [确定]
# docker -d
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
WARN[0000] You are running linux kernel version 2.6.32-642.3.1.el6.x86_64, which might be unstable running docker. Please upgrade your kernel to 3.10.0.
INFO[0000] [graphdriver] using prior storage driver "devicemapper"
WARN[0000] Running modprobe bridge nf_nat failed with message: , error: exit status 1
INFO[0001] Loading containers: start.
..
INFO[0001] Loading containers: done.
INFO[0001] Daemon has completed initialization
INFO[0001] Docker daemon commit=786b29d/1.7.1 execdriver=native-0.2 graphdriver=devicemapper version=1.7.1
如果没报啥错误, 并且 docker images 也能看到一个列表目录而不是报错, 那表示你一定是成功了
如果报错:
# docker -d
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
WARN[0000] You are running linux kernel version 2.6.32-431.el6.x86_64, which might be unstable running docker. Please upgrade your kernel to 3.10.0.
docker: relocation error: docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference
解决办法:
# yum install device-mapper-event-libs
# docker version 查看docker的版本号,包括客户端、服务端、依赖的Go等
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64
以上是我在CentOS6.5_x64下安装的!
|
|