title: python app with selenium failes with MaxRetryError
body: <p>i am trying to host a python app in docker</p>
  <p>i am running selenium standalone chrome in docker and i can connect to it running my python app locally.</p>
  <p>my application looks like this:</p>
  <pre><code>def web_scrape():
  url = &quot;https://who.maps.arcgis.com/apps/opsdashboard/index.html#/ead3c6475654481ca51c248d52ab9c61&quot;
  #setup webdriver
  options = webdriver.ChromeOptions()
  options.add_argument('--no-sandbox')
  options.add_argument('--headless')
  options.add_argument('--disable-dev-shm-usage')
  options.add_argument(&quot;--remote-debugging-port=9222&quot;)
  driver = webdriver.Remote(command_executor=&quot;http://localhost:4444/wd/hub&quot;,                            desired_capabilities=options.to_capabilities())
  driver.get(url)
  time.sleep(20)
  html = driver.execute_script(&quot;return document.documentElement.outerHTML&quot;)
  #Use BeautifulSoup for working with html
  soup = BeautifulSoup(html, &quot;html.parser&quot;)
  covid_soup = soup.find(&quot;div&quot;, id=&quot;ember44&quot;).div.nav.find_all(&quot;span&quot;, class_=&quot;flex-horizontal&quot;)
  covid_dict = {}
  for i in covid_soup:
      country = i.find(&quot;strong&quot;).get_text(strip=True)
      country = clean_country_name(country)
      imgURL = i.p.find_next(&quot;p&quot;).find_next(&quot;p&quot;).find(&quot;img&quot;).get('src') 
      color = get_covid_color(imgURL)
      covid_dict[country] = color
  save_to_json(covid_dict)
  </code></pre>
  <blockquote>
  <p>urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=4444): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x7f44c2ac6c40&gt;: Failed to establish a new connection: [Errno 111] Connection refused'))</p>
  </blockquote>
  <p>does anyone have any suggestions on what could be wrong?</p>