Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?解决方
来源:互联网 发布:恒生电子 知乎 编辑:程序博客网 时间:2024/06/05 06:00
导致这种情况的原因暂时不明,不过经过一翻摸索找到一个解决办法
docker psCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决办法如下:
通过命令查看容器名称
$docker-machine lsNAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORSdefault - virtualbox Saved Unknown defaultd - virtualbox Saved Unknown
然后执行如下命令启动容器:
$docker-machine start defaultStarting "default"...(default) Waiting for an IP...Machine "default" was started.Waiting for SSH to be available...Detecting the provisioner...Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
在执行如下命令:
$docker-machine env defaultexport DOCKER_TLS_VERIFY="1"export DOCKER_HOST="tcp://192.168.99.100:2376"export DOCKER_CERT_PATH="/Users/jack/.docker/machine/machines/default"export DOCKER_MACHINE_NAME="default"# Run this command to configure your shell: # eval $(docker-machine env default)
最后执行如下命令:
$eval $(docker-machine env default)
查看一下容器的情况:
$docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESbe93b47435fd mysql/mysql-server:latest "/entrypoint.sh my..." 2 weeks ago Up 3 days (healthy) 0.0.0.0:3306->3306/tcp, 33060/tcp mysql
成功!!
阅读全文
0 0
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?解决方
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon runn
- 【异常】Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock.??
- 执行docker ps命令,出现 "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. ..."问题
- Docker初次安装运行出错:Cannot connect to the Docker daemon at ***/docker.sock. Is the docker daemon running?
- 【docker】Couldn't connect to Docker daemon at http+unix://var/run/docker.sock
- Docker: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?
- Redis 持久化技术
- Linux errno 错误对照表
- Node JS 的安装与使用和dos窗口环境的常用命令
- 在dos中的常用命令
- CCS调试问题记录
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?解决方
- Android学习记录
- Java 集合总结
- 使用OpenStack创建VM,遇到No valid host was found 错误的分析 (持续更新中)
- php获取客户端IP和服务器端IP
- CentOS7使用firewalld打开关闭防火墙与端口
- 传统企业如何实现生产制造信息化?
- 每天回顾linux命令(ls)
- 利用Nginx配置文件转发