与
ESC
输入关键词搜索文章

在CentOS release 6.5(Final) X64下安装docker

全文约 286 字预计阅读 1 分钟
首先查看内核 [root@netpc.com.cn~]# uname -r 2.6.32-431.23.3.el6.x86_64 据说是要3.1以上的 试试看 安装docker-io yum -y install docker-io 查看状态 [root@netpc.com.cn ~]# service docker status docker is stopped 启动docker进程 [root@netpc.com.cn ~]# service docker start Starting cgconfig service: [ OK ] Starting docker:[ OK ] 搜索php镜像 [root@netpc.com.cn ~]# docker search php Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 根据提示执行 [root@netpc.com.cn ~]# docker -d WARN[0000] You are running linux kernel version 2.6.32-431.23.3.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 忽略警告,再次查看状态,docker死了,可是pid还在。 [root@netpc.com.cn ~]# service docker status docker dead but pid file exists 网上搜索要安装对应的包 [root@netpc.com.cn ~]# yum upgrade device-mapper-libs 再次查看状态,已经变了。 [root@netpc.com.cn ~]# service docker status docker dead but subsys locked 原来是要重启下。 [root@netpc.com.cn ~]# service docker restart Stopping docker: [FAILED] Starting docker:[ OK ] 再次查看状态,已经运行中了。 [root@netpc.com.cn ~]# service docker status docker (pid 29178) is running...
在CentOS release 6.5(Final) X64下安装docker
分享

发表评论

评论 0 条

暂无评论,来说点什么吧。