title: Permission denied when creating locust report inside docker container
body: <p>I'm currently trying to run locust inside a docker container and it works fine for everything except creating html/csv report.</p>
  <p>This is what I have done:</p>
  <p>I have created my own dockfile that extends the locust one (and just copy my file):</p>
  <pre><code>FROM locustio/locust
  
  COPY . /test/
  
  WORKDIR /test
  </code></pre>
  <p>I then run the locust tests like this:</p>
  <pre><code>docker run --name test -p 8089:8089 LocustImage -f src/tests/create_tests.py --run-time 30s --users 1 --spawn-rate 1 --html loadReport.html
  </code></pre>
  <p>But when I run this I get:</p>
  <pre><code>2021-06-07T08:28:15.6966999Z Traceback (most recent call last):
  2021-06-07T08:28:15.6967735Z   File &quot;/usr/local/bin/locust&quot;, line 8, in &lt;module&gt;
  2021-06-07T08:28:15.6968335Z     sys.exit(main())
  2021-06-07T08:28:15.6969642Z   File &quot;/usr/local/lib/python3.8/site-packages/locust/main.py&quot;, line 429, in main
  2021-06-07T08:28:15.6970610Z     with open(options.html_file, &quot;w&quot;, encoding=&quot;utf-8&quot;) as file:
  2021-06-07T08:28:15.6971572Z PermissionError: [Errno 13] Permission denied: 'loadReport.html'
  </code></pre>
  <p>I have also tried to add a volume like this:</p>
  <pre><code>docker run --name test -p 8089:8089 --volume /home/vsts/work/r1/a/report:/test/report LocustImage -f src/tests/create_tests.py --run-time 30s --users 1 --spawn-rate 1 --html /test/report/loadReport.html
  </code></pre>
  <p>But still the same issue. Anyone with an idea of what I'm doing wrong? Haven't found any good example how to get the report with locust inside docker.</p>