aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2019-02-15 15:46:11 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2019-02-15 15:46:11 +0000
commit7ff65a3320a507d9404e7bf0eec5e8ed9cded938 (patch)
tree2abc51e164be32c28ddf9c06bbad554521e1cbac
parentAdd Dockerfile (diff)
downloadminiserve-7ff65a3320a507d9404e7bf0eec5e8ed9cded938.tar.gz
miniserve-7ff65a3320a507d9404e7bf0eec5e8ed9cded938.zip
Add Docker command to README
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4011d7d..b186ece 100644
--- a/README.md
+++ b/README.md
@@ -88,6 +88,10 @@ Sometimes this is just a more practical and quick way than doing things properly
cargo install miniserve
miniserve
+**With Docker:** If you prefer using Docker for this, run
+
+ docker run -v /tmp:/tmp -p 8080:8080 --rm -it svenstaro/miniserve /tmp
+
## Binding behavior
For convenience reasons, miniserve will try to bind on all interfaces by default (if no `-i` is provided).