thttpd is a simple, small, portable, fast, and secure HTTP server.
Dockerfile for this is found here
Run the container mounting a directory with content to host at /var/www
sudo docker run -d -v /path/to/content/dir:/var/www --name thttpd chanux/thttpd
To check whether it worked, find the IP of the container and browse to it.
sudo docker inspect --format='{{.NetworkSettings.IPAddress}}' thttpd
Other fancy docker stuff like binding the container IP to a host IP are left out of this doc :)
Content type
Image
Digest
sha256:5eac21beb…
Size
35.6 MB
Last updated
almost 11 years ago
docker pull chanux/thttpd