Launch using Docker's python image instead of the machine's python.
Mac OSX + Docker Machine (Docker version: 1.10.3)
Execute the following in the folder with the contents.
docker run -it --rm -p 8888:8888 -v `pwd`:/app -w /app python:2-alpine python -m SimpleHTTPServer 8888
docker run -it --rm -p 8888:8888 -v `pwd`:/app -w /app python:3-alpine python -m http.server 8888
open "http://`docker-machine ip default`:8888"
Recommended Posts