From 3d27490f3ce93a8c3c5c768f8b964dd9102461ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Hurtado?= Date: Mon, 25 Nov 2019 11:55:36 +0100 Subject: [PATCH] Correct the docker example in setup section --- docs/source/setup/index.rst | 0 docs/source/setup/install-and-configure.rst | 12 +++--------- 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 docs/source/setup/index.rst diff --git a/docs/source/setup/index.rst b/docs/source/setup/index.rst deleted file mode 100644 index e69de29..0000000 diff --git a/docs/source/setup/install-and-configure.rst b/docs/source/setup/install-and-configure.rst index 160442e..8a1ec37 100644 --- a/docs/source/setup/install-and-configure.rst +++ b/docs/source/setup/install-and-configure.rst @@ -71,13 +71,7 @@ After building the image you can run the container with: .. 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 - - - - - - - -kapow route add /hello/{who} -c 'echo Hello $(kapow get /request/matches/who) | kapow set /response/body' +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.