seagull icon indicating copy to clipboard operation
seagull copied to clipboard

Doesn't work on CentOS 7

Open xinnj opened this issue 9 years ago • 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

xinnj avatar Jun 16 '15 06:06 xinnj

It seems you have no permission to access /var/run/docker.sock. Please try again as root user :smiley:

tobegit3hub avatar Jun 16 '15 06:06 tobegit3hub

Hi @xinnj please checkout if it's problem of permission.

tobegit3hub avatar Jun 26 '15 01:06 tobegit3hub

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.

xinnj avatar Jun 26 '15 08:06 xinnj

Yes, you're right @xinnj

Are you running the seagull command as root? Please paste the output of docker version.

tobegit3hub avatar Jun 27 '15 08:06 tobegit3hub

[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

root2000xyz avatar Oct 19 '15 02:10 root2000xyz

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 :)

tobegit3hub avatar Oct 19 '15 03:10 tobegit3hub

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.

aJetHorn avatar Mar 12 '18 21:03 aJetHorn