Docker实践6:Cannot connect to the Docker daemon.
来源:互联网 发布:水利工程力学分析软件 编辑:程序博客网 时间:2024/05/20 03:44
正在免费适用着Aliyun主机,当然要用docker来部署我的服务器啦。但是今天碰到了题目的问题,细节如下:
# docker infoFATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host? # docker -dINFO[0000] +job serveapi(unix:///var/run/docker.sock) FATA[0000] pid file found, ensure docker is not running or delete /var/run/docker.pid
首先要查看docker daemon是否在运行。
# ps aux | grep dockerroot 691 0.0 1.6 506388 17068 ? Ssl Mar07 0:45 /usr/bin/docker -droot 1330 0.0 0.8 124088 8392 ? Sl Mar07 0:01 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 192.168.42.2 -container-port 80root 9607 0.0 0.0 11720 896 pts/2 S+ 16:50 0:00 grep --color=auto docker
这样看来,docker deamon正在运行,但是报此错误实属不应该。那么将其停止,再启动。
# service docker stop# ps aux | grep dockerroot 9624 0.0 0.0 11716 636 pts/2 S+ 16:52 0:00 grep --color=auto docker# docker -dINFO[0000] +job serveapi(unix:///var/run/docker.sock) INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) INFO[0000] +job init_networkdriver() INFO[0000] -job init_networkdriver() = OK (0) INFO[0000] WARNING: Your kernel does not support cgroup swap limit. INFO[0000] Loading containers: start. ..........INFO[0001] Loading containers: done. INFO[0001] docker daemon: 1.5.0 a8a31ef; execdriver: native-0.2; graphdriver: aufs INFO[0001] +job acceptconnections() INFO[0001] -job acceptconnections() = OK (0)
好吧,最有趣的事情是,之前我在root下一切运行良好,但是现在就像见鬼一样遇到上面的问题。上述的工作完成后,仍有问题。最后我使用sudo竟然解决了问题。如下:
# sudo docker infoContainers: 5Images: 32Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 42Execution Driver: native-0.2Kernel Version: 3.13.0-32-genericOperating System: Ubuntu 14.04.1 LTS
8 3
- Docker实践6:Cannot connect to the Docker daemon.
- Docker - Cannot connect to the Docker daemon
- Cannot connect to the Docker daemon 解决
- Cannot connect to the Docker daemon.
- Cannot connect to the Docker daemon.
- Cannot connect to the Docker daemon
- docker 安装 Cannot connect to the Docker daemon
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?问题解决
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- 问题:Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- MFC CScrollView中的设备坐标和逻辑坐标转换
- 搭建XMPP协议,实现自主推送消息到手机
- DUKPT算法简析-1
- 毕业设计之 “安卓新浪微博客户端” 开发笔记(1)
- Elastic Net
- Docker实践6:Cannot connect to the Docker daemon.
- 从零开始学习OpenCL开发(二)一个最简单的示例与简单性能分析
- JavaScript学习总结(五)——Javascript中==和===的区别
- Ocloud的使用问题记录
- 搜索策略
- ECLIPSE快捷键大全 掌握了这个看着你就牛
- webservice创建
- Android AIDL使用详解
- Android 中自定义属性(attr.xml,TypedArray)的使用!