title: Docker container cannot connect to Host Machine
body: <p>i tried to deploy some containers to a new CentOS7 VM (newest docker version) with docker-compose:</p>
  
  <ul>
  <li>ASP.NET Application</li>
  <li>Mongo</li>
  <li>Nginx Reverse Proxy</li>
  <li>Lets Encrypt Sidecar for Nginx</li>
  </ul>
  
  <p>The connection between the containers works fine. But my ASP.NET Application has to make a request to itself using the public domain name. It fails and when I make a curl request inside the container it fails with <code>No route to Host</code>. Note: I am not using localhost or so.</p>
  
  <p>I found another post: <a href="https://stackoverflow.com/questions/43879637/docker-container-cannot-connect-to-host-machine-no-route-to-host">Docker container cannot connect to host machine: No route to host</a></p>
  
  <p>It seemed to be firewall problem in this case. So I also tried to add firewall rules, but it did not help.</p>