title: How to fix docker error "readonly file system: unknown"?
body: <p>I was treing to set the project on my local machine as readonly for the docker container, like this:</p>
  <pre><code>docker run -d \
      -p 3000:3000 \
      -v $PWD:/app:ro \
      -v /app/node_modules \
      --name $1 \
      $(docker images | awk '{print $1}' | awk 'NR==2')
  </code></pre>
  <p>and I always get this error, only after I add the <code>:ro</code> bit as the optional parameter to the volume:</p>
  <pre><code>docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:75: mounting &quot;/var/lib/docker/volumes/6ffd471c1bc7edc141b6569b4d8e16829c7c7ae1838e4cc924727b0a854de143/_data&quot; to rootfs at &quot;/app/node_modules&quot; caused: mkdir /var/lib/docker/overlay2/60b790308084302171b1b339ee242862651d7d96ecf21fb9b0a8867326ca83b3/merged/app/node_modules: read-only file system: unknown.
  </code></pre>
  <p>I was following this <a href="https://www.youtube.com/watch?v=9zUHg7xjIqQ" rel="nofollow noreferrer">tutorial</a> and I am using <code>docker-desktop</code> and <code>WSL2</code> on <code>windows 11</code>.</p>