title: Cannot find Chrome binary when running Webdriverio tests in Docker
body: <p>I am struggling trying to run <code>wdio</code> test in <code>Docker</code>, the error is that it cannot find <code>Chrome binary</code> with the current setup</p>
  
  <p>docker-compose.yml</p>
  
  <pre><code>version: "3.7"
  
  services:
    code:
      image: my-image
      build:
          dockerfile: ./Dockerfile
          context: .
      volumes:
        - .:/app
      depends_on:
        - "selenium"
      command: /bin/bash -c "cd app; npm test"
    selenium:
        image: selenium/standalone-chrome
        volumes:
          - /dev/shm:/dev/shm
        ports:
          - "4444:4444"
  </code></pre>
  
  <p>Dockerfile</p>
  
  <pre><code>FROM node:10.15.3
  ADD . /app
  WORKDIR /app
  RUN apt update &amp;&amp; apt install default-jre -y
  </code></pre>
  
  <p>wdio.conf.js</p>
  
  <pre><code>...
  exports.config = {
  
      runner: 'local',
      // host: process.env.HOST,
      host: 'selenium',
      port: 4444,
  ...
  </code></pre>
  
  <p>error after running <code>docker-compose up</code></p>
  
  <pre class="lang-sh prettyprint-override"><code>code_1      | 0-0 worker error { name: 'unknown error',
  code_1      |   message:
  code_1      |    'unknown error: cannot find Chrome binary\n  (Driver info: chromedriver=2.43.600233
  </code></pre>