title: How to run curl commands with k6 docker image in gitlab yml
body: <p>I want to run a curl request as a pre-request script for my K6 load tests. Here is my YML file:</p>
  <pre><code>  - loadtest-local
  
  image:
    name: ubuntu:latest
  
  loadtest-local:
    image:
      name: loadimpact/k6:latest
      entrypoint: ['']
    stage: loadtest-local
    before_script:
      - apk add --no-cache curl jq
    script:
      - echo &quot;executing local k6 in k6 container...&quot;
      - &gt;
        curl google.com
      - k6 run ./tests/script.js
  </code></pre>
  <p>When I run this in my pipeline I get the following error:</p>
  <pre><code>$ apk add --no-cache curl jq
  ERROR: Unable to lock database: Permission denied
  ERROR: Failed to open apk database: Permission denied
  </code></pre>
  <p>How can I add a curl request as a pre-request script in my YML?</p>