<p>I am currently trying to set up kubernetes on a multi-docker container on CoreOS stack for AWS. To do this I need to set up etcd for flannel and am currently using <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/docker-multinode/master.md" rel="nofollow">this guide</a> but am having problems at the first stage where I am suggested to run</p>

<p>sudo sh -c 'docker -d -H unix:///var/run/docker-bootstrap.sock -p /var/run/docker-bootstrap.pid --iptables=false --ip-masq=false --bridge=none --graph=/var/lib/docker-bootstrap 2> /var/log/docker-bootstrap.log 1> /dev/null &amp;'</p>

<p>The problem is the 1st command</p>

<pre><code> docker -d -H unix:///var/run/docker-bootstrap.sock
</code></pre>

<p>from within boot2docker. There is no docker-bootstrap.sock file in this directory and this error is thrown:</p>

<p>FATA[0000] An error occurred trying to connect: Post <a href="https:///var/run/docker-bootstrap.sock/v1.18/containers/create" rel="nofollow">https:///var/run/docker-bootstrap.sock/v1.18/containers/create</a>: dial unix /var/run/docker-bootstrap.sock: no such file or directory</p>

<p>Clearly the unix socket did not connect to this nonexistent socket.</p>

<p>I will note this is a very similar problem to <a href="https://forums.docker.com/t/docker-osx-var-run-docker-sock-file-missing/623" rel="nofollow">this ticket</a> and other tickets regarding the FATA[0000] though none seem to have asked the question in the way I currently am.</p>

<p>I am not an expert in unix sockets, but I am assuming there should be a file where there is not. Where can I get this file to solve my issue, or what is the recommended steps to resolve this.</p>

<p>specs: running OSX Yosemite but calling all commands from boot2docker</p>

<p>Docker should create this file for you.  Are you running this command on your OS X machine? or are you running it inside the boot2docker VM?</p>

<p>I think you need to:</p>

<pre><code>boot2docker ssh
</code></pre>

<p>Then:</p>

<pre><code>sudo sh -c 'docker -d -H unix:///var/run/docker-bootstrap.sock -p /var/run/docker-bootstrap.pid --iptables=false --ip-masq=false --bridge=none --graph=/var/lib/docker-bootstrap 2&gt; /var/log/docker-bootstrap.log 1&gt; /dev/null &amp;'
</code></pre>

<p>You need to make sure that command runs on the Vagrant Linux box that boot2docker creates, not your OS X machine.</p>

<p>Hope that helps!</p>
