title: Accessing website hosted in a linux container from windows host
body: <p>I have a linux container based on latest <code>ruby</code> image hosted in my windows laptop. I have a sample website running in the container. I can confirm that the website is running fine because running <code>curl http://localhost:4000</code> with in the container returns the expected html. However, when I try to access the url from a browser in Windows it fails saying that it is not reachable. I am trying to figure out a way to access the sample app using browser in Windows.</p>
  <p>Though I am trying to setup a ruby container (as I am trying to learn ruby), I am suspecting this is a networking problem with LCOW because I cannot <code>ping</code> the ip address of the container from Windows command prompt. It gives the error that &quot;<strong>TTL expired in transit</strong>&quot;. Has anyone ever successfully tried a linux container on windows and accessing the website hosted in the container from windows? Could you please help me in figuring out what I am doing wrong or if I have to do something extra, like network route configuration, to make this working?</p>
  <p><strong>Further Details</strong>:</p>
  <ol>
  <li><p>Docker version: 19.03.4</p>
  </li>
  <li><p>Host: Windows 10 Business Edition</p>
  </li>
  <li><p>Base Image: <a href="https://hub.docker.com/_/ruby" rel="nofollow noreferrer">ruby on linux</a></p>
  </li>
  <li><p>docker run command used:</p>
  <p><code>docker run -dit -p 4000:4000 --rm --name test updatedRubyImage</code></p>
  </li>
  <li><p>updatedRubyImage: This is a new image I created using base image. I installed a few <code>gems</code> on top of the base and commited it as a new image.</p>
  </li>
  </ol>