aacebedo/dnsdock

Unable to start dnsdock container

ediskandarov opened this issue · 5 comments

$ 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

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)

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

Hi

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

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

Thank you. I will check it this evening.

Thank you it works for me.