A minimalist http server
A minimal example to serve current working directory on port 6880:
docker run --rm \
-v $PWD:/www \
-p 6880:80 \
p3terx/darkhttpd /www
Use bridge network driver to run continuously in the background:
docker run -d \
--name darkhttpd \
--restart unless-stopped \
-v $PWD:/www \
-p 6880:80 \
p3terx/darkhttpd /www
Use host network driver to run continuously in the background (If you need to use IPv6 network access, this is the easiest way):
docker run -d \
--name darkhttpd \
--network host \
--restart unless-stopped \
-v $PWD:/www \
p3terx/darkhttpd /www \
--port 6880 \
--ipv6
See a full list of commandline options:
docker run --rm p3terx/darkhttpd
Content type
Image
Digest
sha256:50b625cc3…
Size
60.4 kB
Last updated
6 days ago
docker pull p3terx/darkhttpd:1.17