Both are tag has different entrypoint.
It latest the command work because the entrypoint
is locust
, so when you when run
locustio/locust -f /locust/short.py
it will be process like
locust -f locustfile.py
So this the valid command for locust
and it should work.
In another case for locustio/locust:0.14.6 there is no entrypoint but only has CMD
CMD ["./docker_start.sh"]
so the docker run command -f /locust/short.py
will not work, as it not executable.
You can try below command might it work
docker run -p 8089:8089 -v ${PWD}:/locust locustio/locust:0.14.6 "locust -f /locust/short.py"