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

Can't run the deploy.sh #49

Open
qianyuxiang01 opened this issue Dec 7, 2015 · 1 comment
Open

Can't run the deploy.sh #49

qianyuxiang01 opened this issue Dec 7, 2015 · 1 comment

Comments

@qianyuxiang01
Copy link

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

@amitkumarj441
Copy link

@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

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