title: Alpine Docker ERROR: Unable to lock database: Permission denied ERROR: Failed to open apk database: Permission denied
body: <p>So I have used the default docker for testcafe which on docker hub is testcafe/testcafe and I have to run a few testcafe scripts.  </p>
  
  <p>However, I need the screenshot that fires on error, to be uploaded to somewhere where I can look at it later after the docker image is done running.  </p>
  
  <p>I am using the Imgur program which uses bash so I re-did a few things to make it sh compatible and everything works except I need curl.  I tried running </p>
  
  <pre><code>apk add curl
  </code></pre>
  
  <p>but I'm getting the error </p>
  
  <pre><code>ERROR: Unable to lock database: Permission denied ERROR: Failed to open apk database: 
  </code></pre>
  
  <p>Now I no this means that I do not have permission to do this but can I get around this is there some way to become root (this is in bitbucket pipeline).  </p>
  
  <p>I do NOT really want to create my own docker.</p>
  
  <p>Also note all questions I have found relating to this are about installing while creating the docker, however, my question is how to do this after the docker is created.  thx (a fine answer would be another way to save the screen shot, but preferably not with ssh).</p>