title: Docker Container No route to host error
body: <p>I have the following docker:</p>
  
  <pre><code>docker --version
  Docker version 17.12.0-ce, build c97c6d6
  </code></pre>
  
  <p>And when I do a CURL to an external URL, it fails:</p>
  
  <p>inside-container$> <strong>curl -u username -p <a href="https://countries.c1.com/countries/v1/countries" rel="nofollow noreferrer">https://countries.c1.com/countries/v1/countries</a></strong></p>
  
  <pre><code>curl: (7) Failed to connect to 10.10.20.30 port 443: No route to host
  </code></pre>
  
  <p>inside-container$> ping countries.c1.com</p>
  
  <pre><code>PING countries.c1.com (10.10.20.30): 56 data bytes
  64 bytes from 10.10.20.30: icmp_seq=0 ttl=250 time=2.919 ms
  --- countries.c1.com ping statistics ---
  1 packets transmitted, 1 packets received, 0% packet loss
  round-trip min/avg/max/stddev = 2.919/2.919/2.919/0.000 ms
  </code></pre>
  
  <p>So host can be resolved but can't do a curl. When I run the same curl statement from outside of the docker container (e.g docker host or laptop) it works fine!</p>
  
  <p>Any hint pointing me to the right direction would be very much appreciated!</p>
  
  <p>I am not sure what kind of configuration might be relevant. I will provide anything later on if requested.</p>