From 7ea3624ea4237c789853ca0c259c066fa918bb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Nordb=C3=B8?= <42581046+MagnusNordboe@users.noreply.github.com> Date: Wed, 9 Nov 2022 17:48:45 +0100 Subject: [PATCH] Added a better working docker command for Windows users --- docs/running-in-docker.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/running-in-docker.rst b/docs/running-in-docker.rst index 5e688ed85d..1a5cc1e502 100644 --- a/docs/running-in-docker.rst +++ b/docs/running-in-docker.rst @@ -10,6 +10,10 @@ Use it like this (assuming that the ``locustfile.py`` exists in the current work docker run -p 8089:8089 -v $PWD:/mnt/locust locustio/locust -f /mnt/locust/locustfile.py +On Windows, this command will sometimes cause errors. Windows users should try using this instead:: + + docker run -p 8089:8089 --mount type=bind,source=$pwd,target=/mnt/locust locustio/locust -f /mnt/locust/locustfile.py + Docker Compose ==============