错误:Got permission denied while trying to connect to the Docker daemon socket at....
2017-08-14 17:04
761 查看
用JSch实现远程执行docker命令报错:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/containers/nova-627e13b3-06b0-49e6-8cb9-8b649a9a8c93/exec: dial unix /var/run/docker.sock: connect: perm
我就奇了怪了,我在物理机上执行:docker exec nova-627e13b3-06b0-49e6-8cb9-8b649a9a8c93 ls
没有任何错误,粘贴到eclipse上就出现了错误
错误原因:没有加sudo,原来JSch连接进去 我的用户不是root 没办法执行,
在开始的命令改为:sudo docker exec nova-627e13b3-06b0-49e6-8cb9-8b649a9a8c93 ls
错误解决。
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/containers/nova-627e13b3-06b0-49e6-8cb9-8b649a9a8c93/exec: dial unix /var/run/docker.sock: connect: perm
我就奇了怪了,我在物理机上执行:docker exec nova-627e13b3-06b0-49e6-8cb9-8b649a9a8c93 ls
没有任何错误,粘贴到eclipse上就出现了错误
错误原因:没有加sudo,原来JSch连接进去 我的用户不是root 没办法执行,
在开始的命令改为:sudo docker exec nova-627e13b3-06b0-49e6-8cb9-8b649a9a8c93 ls
错误解决。
相关文章推荐
- 错误:Got permission denied while trying to connect to the Docker daemon socket at....
- docker执行命令报错:Got permission denied while trying to connect to the Docker daemon socket at unix:///va
- docker error Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
- 解决 ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it 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 ***/docker.sock. Is the docker daemon running?
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock.??
- Docker出现Cannot connect to the Docker daemon. Is the docker daemon running on this host错误解决办法
- 执行docker ps命令,出现 "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. ..."问题
- kettle入门(二) 之 kettle连接oracle报的坑爹错误 Error occured while trying to connect to the database 的几种情况
- 【异常】Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
- Docker运行报Cannot connect to the Docker daemon错误
- Docker初次安装运行出错:Cannot connect to the Docker daemon at ***/docker.sock. Is the docker daemon running?
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?解决方
- ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决
- docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon runn
- Cannot connect to the Docker daemon.
- Cannot connect to the Docker daemon. Is the docker daemon running on this host
- 解决Nginx的connect() to 127.0.0.1:8080 failed (13: Permission denied) while connect
- Centos 7 上使用nginx为Node.js配置反向代理时错误:(13: Permission denied) while connecting to upstream