title: How to install Google chrome in a docker container
body: <p>I'm trying to install chrome in a docker container. I execute:</p>
  <pre><code>RUN apt-get install -y wget
  RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  RUN dpkg -i google-chrome-stable_current_amd64.deb  # problem here
  RUN apt -f install -y
  </code></pre>
  <p>The problem is that <code>dpkg -i</code> fails because of missing dependencies. In principle this is not a big problem, as the next command should fix this, and indeed it does it when <em>run interactively</em> from within the container. But the problem is that when <em>building</em> a docker container this error makes the build process to stop:</p>
  <pre><code>dpkg: error processing package google-chrome-stable (--install):
   dependency problems - leaving unconfigured
  Errors were encountered while processing:
   google-chrome-stable
  root@78b45ab9aa33:/# 
  exit
  </code></pre>
  <p>How can I overcome this problem? Isn't there a simpler way to install chrome without provoking the dependence problem? I can't find the repository to add so I can run a regular <code>apg-get install google-chrome</code>, that is what I'd like to do. In the <a href="https://www.google.com/linuxrepositories/" rel="noreferrer">google linux repository</a> they just mention that the &quot;the packages will automatically configure the repository settings necessary&quot;. Which is not exactly what I get...</p>