How do we run the –out command when it’s in a Docker?
The documentation only mentions:
k6 run --out json=my_test_result.json script.js
Is there a docker run alternative for this?
We are running it like this now (but the json is not generated):
docker run -i loadimpact/k6 run --out json=result.json - <threshold.js
see this previous answer for the same question: Save json when using docker to run k6 - #2 by imiric
Tip: you can use the search function in the upper right corner to find previous discussions.
This is not strictly related to k6, but we’ll consider adding this to the official documentation if it helps.