sudo docker run --name python_simplehttpserver -d -v /tmp/:/var/www:ro -p 8080:8080 trinitronx/python-simplehttpserver # Then run your container & link it... sudo ...
I get a panic when PUTting a gzip file to python's SimpleHTTPServer, which doesn't support the PUT method. Upload a gzip file. I think the contents are not important, but I tried a zero-length file, ...
The need to transfer files over a network is one that arises often. GNU/Linux systems support multiple protocols and tools for doing so, some of which are designed for somewhat permanent file sharing ...
Want to quickly share a file, test some code, or broadcast something? You can instantly create a web server out of the current directory by using nothing but python, yup, no apache, no nginx, no ...