Correct the docker example in setup section

This commit is contained in:
Héctor Hurtado
2019-11-25 11:55:36 +01:00
parent 6b2e2dfb28
commit 3d27490f3c
2 changed files with 3 additions and 9 deletions
View File
+3 -9
View File
@@ -71,13 +71,7 @@ After building the image you can run the container with:
.. code-block:: bash .. code-block:: bash
$ docker run --rm -i -p 8080:8080 kapow:latest server < whatever.pow $ docker run --rm -i -p 8080:8080 -v $(pwd)/whatever.pow:/opt/whatever.pow kapow:latest server /opt/whatever.pow
With the -v parameter we map a local file into the container's filesystem so we
can use it to configure our Kapow! server on startup.
kapow route add /hello/{who} -c 'echo Hello $(kapow get /request/matches/who) | kapow set /response/body'