Unable to access docker SimpleHTTPServer container
<p>This question has been asked before, but I have not found a solution to my issue. I have some static files that I want to serve using Python's <code>SimpleHTTPServer</code> module. I have successfully built the image and run it, but I am unable to access the files from the browser. 
Here is my DockerFile:</p>

<pre><code>FROM python:2.7

WORKDIR /test/
EXPOSE 8080

CMD python -m SimpleHTTPServer 8080
</code></pre>

<p>I am using the following commands: </p>

<pre><code>docker build -t gwidgets/client-python-server . 
docker run --rm -ti -p 8080:8080 -v /gwt-polymer-starter/:/test/ --name client2 gwidgets/client-python-server
</code></pre>

<p>The image runs fine, but when I go to <code>http://{container'sIP}:8080/Test.html</code>, nothing happens. The server does not even get the request. </p>

<p>I am running docker on Windows 10. </p>

<p>Any ideas what the issue might be?</p>

<p>The <code>-p</code> option publishes the container's ports to the host. You may need to use <a href="http://localhost:8080/Test.html" rel="nofollow">http://localhost:8080/Test.html</a> if you run the container with <code>-p 8080:8080</code> specified.</p>

python windows docker simplehttpserver