Docker:Cannot connect to the Docker daemon. Is the docker daemon running on this host?[已解决]

原创 2017年10月05日 16:41:46

解决方法:

查看是否存在进程:

$ ps aux |grep docker

停止进程

$sudo service docker stop

重启docker:

$dockerd

或者:

If you see an error such as the following, your Docker client may be configured to connect to a Docker daemon on a different host, and that host may not be reachable.

Cannot connect to the Docker daemon. Is ‘docker daemon’ running on this host?
To see which host your client is configured to connect to, check the value of the DOCKER_HOST variable in your environment.

$ env | grep DOCKER_HOST
If this command returns a value, the Docker client is set to connect to a Docker daemon running on that host. If it is unset, the Docker client is set to connect to the Docker daemon running on the local host. If it is set in error, use the following command to unset it:

$ unset DOCKER_HOST
You may need to edit your environment in files such as ~/.bashrc or ~/.profile to prevent the DOCKER_HOST variable from being set erroneously.

If DOCKER_HOST is set as intended, verify that the Docker daemon is running on the remote host and that a firewall or network outage is not preventing you from connecting.

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Docker - How to Connect to a MySQL Running Container Using MySQL Command Line Client

We used the official mysql image from Docker Hub (https://hub.docker.com/_/mysql/), and created a ru...

Unable to start MySQL service. Another MySQL daemon is already running with the same UNIX socket

Unable to start MySQL service. Another MySQL daemon is already running with the same UNIX socket ...

Docker 架构之Daemon

1.前言 Docker作为容器技术的集大成者,在对于学习文件管理,任务调度方面有着显而易见的范例性作用,剖析Docker的架构也是非常有意义的一件事情。Docker架构主要分为客户端和服务端,客户端...

Docker学习笔记(四)-fixbug1-daemon.json

因daemon.json中DNS Server设置而引起的错误在使用docker的过程中如果报出的错误,可以参考本文。

docker daemon调试

通常我们可以打开docker daemon的debug选项来获docker的运行动态,以对可能出现的问题进行调试。如果daemon已经没有了反应,可以给docker daemon发送 SIGUSR 信...

服务器连接错误Host 'XXX' is not allowed to connect to this MySQL server如何解决

Host 'Local' is not allowed to connect to this MySQL server 典型的远程权限问题。问题症结是MySQL 没有开放远程登录的权限。      开...

Host is not allowed to connect to this MySQL server 和 access denied for user 'root'@'localhost' 解决办法

昨天,我让同事连我的数据库,连不上,报错:Host is not allowed to connect to this MySQL server 这个错误之前也见过,意思是说我的 MySQL 服务器不...

mysql连接权限问题 Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号

我用虚拟机上的java程序连接本地mysql,遇到is not allowed to connect to this MySQL server的问题。 从网上查了下Host 'XXX' is not...

Docker源码分析(六):DOCKER DAEMON网络

[摘要] Docker的容器特性和镜像特性已然为Docker实践者带来了诸多效益,然而Docker的网络特性却不能让用户满意。本文从Docker的网络模式入手,分析了Docker Daemon创建网...

报错:1130-host ... is not allowed to connect to this MySql server

今天自己第一次把数据库弄到服务器上去。也很简单,就是直接在服务器上安装mysql,然后导入再本地备份好的数据。好了,设置成功之后,把project里面数据库链接地址中的localhost改为服务器公网...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)