Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on CentOS 7 #47

Open
xinnj opened this issue Jun 16, 2015 · 7 comments
Open

Doesn't work on CentOS 7 #47

xinnj opened this issue Jun 16, 2015 · 7 comments

Comments

@xinnj
Copy link

xinnj commented Jun 16, 2015

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

@tobegit3hub
Copy link
Owner

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

@tobegit3hub
Copy link
Owner

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

@xinnj
Copy link
Author

xinnj commented Jun 26, 2015

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.

@tobegit3hub
Copy link
Owner

Yes, you're right @xinnj

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

@root2000xyz
Copy link

[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

@tobegit3hub
Copy link
Owner

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

@aJetHorn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants