Can't run the deploy.sh
qianyuxiang@qianyuxiangdeMacBook-Pro:~$sudo docker-scripts/deploy/deploy.sh -i amplab/spark:1.0.0 -w 2 -c *** Starting Spark 1.0.0 *** starting nameserver container time="2015-12-07T21:24:26+08:00" level=fatal msg="Post http:///var/run/docker.sock/v1.18/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?" error: could not start nameserver container from image amplab/dnsmasq-precise
I just clone the repository from github and run the script.But this works on my virtual centos machine
@QianYuXiang ,
Try this on your MacOSX -->>
Maybe this is useful to others, I solved it as follows:
-
Create the docker0 bridge beforehand (and add iptables NAT rule)
-
give it the same ip as docker would (in my case 172.17.0.1/16)
-
bind a DNS resolver to that ip address only (I used consul, but dnsmasq or BIND would do too)
-
put this ip in /etc/resolv.conf as nameserver
-
start docker and tell it to use that 172.17.0.1 as DNS server
This makes both regular containers as well as those on user-defined networks just work.
Cheers, Amit Kumar Jaiswal