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

Unable to start dnsdock container #11

Closed
ediskandarov opened this issue Mar 26, 2015 · 5 comments
Closed

Unable to start dnsdock container #11

ediskandarov opened this issue Mar 26, 2015 · 5 comments
Assignees

Comments

@ediskandarov
Copy link

$ docker run -d -v /var/run/docker.sock:/var/run/docker.sock --name dnsdock -p 172.17.42.1:53:53/udp tonistiigi/dnsdock
$ docker logs dnsdock
2015/03/25 02:25:30 Error connecting to docker socket: Get http://unix.sock/v1.15/containers/json?all=0&size=0: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

docker package docker.x86_64 0:1.5.0-1.el7

@ediskandarov
Copy link
Author

Also bug reproduce in older docker

$ docker --version
Docker version 1.3.2, build 39fa2fa/1.3.2
$ docker info
Containers: 19
Images: 50
Storage Driver: devicemapper
 Pool Name: docker-253:1-9072481-pool
 Pool Blocksize: 65.54 kB
 Data file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
 Data Space Used: 3.273 GB
 Data Space Total: 107.4 GB
 Metadata Space Used: 4.776 MB
 Metadata Space Total: 2.147 GB
 Library Version: 1.02.84-RHEL7 (2014-03-26)
Execution Driver: native-0.2
Kernel Version: 3.10.0-123.20.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)

@ediskandarov
Copy link
Author

Run with flag --privileged=true on docker 1.5 resolve this issue.

@tonistiigi
Copy link
Collaborator

Hi

See https://github.com/dpw/selinux-dockersock

Please report back if it worked. I'll add it to the readme then.

@ediskandarov
Copy link
Author

Thank you. I will check it this evening.

@ediskandarov
Copy link
Author

Thank you it works for me.

@tonistiigi tonistiigi self-assigned this Apr 2, 2015
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

2 participants