Doesn't work on CentOS 7
xinnj opened this issue · 7 comments
Host sever is running CentOS 7. DockerUI works well with same docker configuration.
$ docker run -p 10086:10086 -v /var/run/docker.sock:/var/run/docker.sock tobegit3hub/seagull
2015/06/16 05:53:37 [app.go:103] [I] http server Running on :10086
Error to connect to /var/run/docker.sock dial unix /var/run/docker.sock: permission denied
Error to connect to /var/run/docker.sock dial unix /var/run/docker.sock: permission denied
Error to connect to /var/run/docker.sock dial unix /var/run/docker.sock: permission denied
It seems you have no permission to access /var/run/docker.sock
. Please try again as root user 😃
Hi @xinnj please checkout if it's problem of permission.
Hi,
The docker service was started by root. I don’t know anything else I can do. BTW, dockerui works fine at the same platform. I believe dockerui is also using the same docker.sock.
Xin
发件人: tobe
发送时间: 2015年6月26日, 星期五 9:50
收件人: tobegit3hub/seagull
抄送: iPad
Hi @xinnj please checkout if it's problem of permission.
—
Reply to this email directly or view it on GitHub.
Yes, you're right @xinnj
Are you running the seagull command as root? Please paste the output of docker version
.
[root@k8s-master ~]# docker run -p 10086:10086 -v /var/run/docker.sock:/var/run/docker.sock tobegit3hub/seagull
Usage of loopback devices is strongly discouraged for production use. Either use --storage-opt dm.thinpooldev
or use --storage-opt dm.no_warn_on_loop_devices=true
to suppress this warning.
2015/10/19 02:49:53 [asm_amd64.s:2232] [I] http server Running on :10086
Error to connect to /var/run/docker.sock dial unix /var/run/docker.sock: permission denied
Error to connect to /var/run/docker.sock dial unix /var/run/docker.sock: permission denied
[root@k8s-master ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Package Version (client): docker-1.7.1-115.el7.x86_64
Go version (client): go1.4.2
Git commit (client): 446ad9b/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Package Version (server): docker-1.7.1-115.el7.x86_64
Go version (server): go1.4.2
Git commit (server): 446ad9b/1.7.1
OS/Arch (server): linux/amd64
Hi @root2000xyz . It seems the problem of permission but you have already run as root.
Please let me have some time to test in CentOS 7 and find out the root cause :)
Run the container with the --privileged
flag on any SELinux distro. I've thrown a lot at this issue and this is the only thing I've been able to get to work.