title: Unable to discover docker containers
body: <p>I am following this tutorial for service discovery <a href="http://jasonwilder.com/blog/2014/07/15/docker-service-discovery">http://jasonwilder.com/blog/2014/07/15/docker-service-discovery</a></p>
  
  <p>Briefly:</p>
  
  <p>I created an etcd host running at x.y.z.d:4001</p>
  
  <pre><code>docker run -d --name etcd -p 4001:4001 -p 7001:7001 coreos/etcd
  </code></pre>
  
  <p>Created a backend server running a container at backend_serverip:8000 and docker-register</p>
  
  <pre><code>$ docker run -d -p 8000:8000 --name whoami -t jwilder/whoami
  $ docker run --name docker-register -d -e HOST_IP=$(hostname --all-ip-addresses | awk '{print $1}') -e ETCD_HOST=x.y.z.d:4001 -v /var/run/docker.sock:/var/run/docker.sock -t jwilder/docker-register
  </code></pre>
  
  <p>Created another backend server running a container at backend2_serverip:8000 and docker-register</p>
  
  <pre><code> $ docker run -d -p 8000:8000 --name whoami -t jwilder/whoami
   $ docker run --name docker-register -d -e HOST_IP=$(hostname --all-ip-addresses | awk '{print $1}') -e ETCD_HOST=x.y.z.d:4001 -v /var/run/docker.sock:/var/run/docker.sock -t jwilder/docker-register
  </code></pre>
  
  <p>Created a client running docker-discover and an ubuntu image</p>
  
  <pre><code>$ docker run -d --net host --name docker-discover -e ETCD_HOST=10.170.71.226:4001 -p 127.0.0.1:1936:1936 -t jwilder/docker-discover
  </code></pre>
  
  <p>When I look at the logs to see if containers are being registered I see teh folowing error</p>
  
  <pre><code>2015/07/09 19:28:00 error running notify command: python /tmp/register.py, exit status 1
  2015/07/09 19:28:00 Traceback (most recent call last):
   File "/tmp/register.py", line 22, in &lt;module&gt;
  backends = client.read("/backends")
   File "/usr/local/lib/python2.7/dist-packages/etcd/client.py", line 347, in read
  self.key_endpoint + key, self._MGET, params=params, timeout=timeout)
    File "/usr/local/lib/python2.7/dist-packages/etcd/client.py", line 587, in api_execute
  return self._handle_server_response(response)
    File "/usr/local/lib/python2.7/dist-packages/etcd/client.py", line 603, in _handle_ser
  etcd.EtcdError.handle(**r)
    File "/usr/local/lib/python2.7/dist-packages/etcd/__init__.py", line 184, in handle
  raise exc(msg, payload)
  etcd.EtcdKeyNotFound: Key not found : /backends
  </code></pre>
  
  <p>I tried manually creating this directory , I also tried running the containers with privileged option but no luck</p>