sernst / locusts

Locust.io docker container for Python 3.8+
26 stars 24 forks source link

error when trying to run example from readme.md #5

Open SBSolera opened 5 years ago

SBSolera commented 5 years ago

I pulled down the docker image and created a ./scripts folder, but when I try to run the example command, I get an error:

docker: Error response from daemon: create ./scripts: "./scripts" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.

command:

docker run -it --rm \
    -v ./scripts:/scripts \
    swernst/locusts \
    --master-host=127.0.0.1

I was able to get around this error by modifying the Dockerfile to Mount ./scripts, but even then I can't get the image to run properly. Any ideas? Your docker image was the highest downloaded for locust so I was thinking it would be the best chance of success.

Thanks!

tmatth commented 4 years ago

You can replace ./scripts:/scripts with ${PWD}/scripts:/scripts (assuming you're running from inside a clone of this repo).