title: Docker selenium/node-chrome - Protractor can not find Chrome binary
body: <p>I am a newbie to Docker, but not to E2E protractor. I am trying to build E2E integration out of docker containers.</p>
  
  <p>Following <a href="https://github.com/angular/protractor-cookbook/tree/master/protractor-docker" rel="nofollow noreferrer">Angular's protractor cookbook using Docker</a></p>
  
  <p>They have <a href="https://github.com/angular/protractor-cookbook/tree/master/protractor-docker#step-2---starting-the-selenium-nodes" rel="nofollow noreferrer">Step 2 - Starting Selenium Nodes</a> with </p>
  
  <p><code>docker run -d --link selenium-hub:hub selenium/node-chrome:latest</code></p>
  
  <p>I understand what Selnium Grid does - it allows browsers of different types to be tested by communicating with the grid.</p>
  
  <p>When I have this docker container running Protactor does not use it as a chrome binary and I get <code>WebDriverError: unknown error: cannot find Chrome binary</code>. </p>
  
  <p>How do I make protractor use this <code>node-chrome</code> container and not the local chrome binary? </p>
  
  <p>My protractor config: </p>
  
  <pre><code>exports.config = {
    framework: 'mocha',
    directConnect: true,
    seleniumAddress: 'http://localhost:4444/wd/hub', // I have this set to the grid docker container from Angular cookbook
    specs: ['./stories/*.js'],
    onPrepare: function() {
      expect = require("chai").use(require("chai-as-promised")).expect;
    },
    mochaOpts: {
      enableTimeouts: false,
      reporter: "spec",
      slow: 7000
    },
    capabilities: {
      browserName: 'chrome'
    }
  }
  </code></pre>
  
  <p>This is how I run protractor on my headless server(non docker) <code>xvfb-run node_modules/protractor/bin/protractor e2e/protractor.conf.js</code></p>