title: docker-compose selenium grid
body: <p>I'm using <code>docker-compose</code> version 2 to build a local selenium grid, and I'm running into trouble.</p>
  
  <p>Most of my trouble is coming from a lot of old blogs/documentation and trying to build this using new documentation, with little practical reference (eg: no newer blogs). From my understanding, this should work but it's not.</p>
  
  <p>Here's my <code>docker-compose.yml</code> file:</p>
  
  <pre><code>version: '2.0'
  services:
    grid-hub:
      image: 'selenium/hub'
      ports:
        - '4444:4444'
    node-chrome-debug:
      image: 'selenium/node-chrome-debug'
      depends_on:
        - 'grid-hub'
      environment:
        - HUB_PORT_4444_TCP_ADDR=grid-hub
  </code></pre>
  
  <p>Here's the output of my node, which never gets past this to register with the hub:</p>
  
  <pre><code>Waiting xvfb...
  -bash: 169.254/16: No such file or directory
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  Waiting xvfb...
  </code></pre>
  
  <p>I've been scouring the <code>Dockerfile</code> on github, and I thought maybe I was missing an environment variable but I can't find what I'm missing.</p>
  
  <p>Here's an update:
  I've tried specifying the port via <code>- HUB_PORT_4444_TCP_PORT=4444</code>, but this has had no effect. I've opened an <a href="https://github.com/SeleniumHQ/docker-selenium/issues/407" rel="nofollow noreferrer">issue on github</a> to increase visibility, but this also includes my docker version which I'll include here.</p>
  
  <pre><code>Client:
   Version:      1.13.1
   API version:  1.26
   Go version:   go1.7.5
   Git commit:   092cba3
   Built:        Wed Feb  8 08:47:51 2017
   OS/Arch:      darwin/amd64
  
  Server:
   Version:      1.13.1
   API version:  1.26 (minimum version 1.12)
   Go version:   go1.7.5
   Git commit:   092cba3
   Built:        Wed Feb  8 08:47:51 2017
   OS/Arch:      linux/amd64
   Experimental: true
  </code></pre>