title: Kubernetes - mount read only share as writable
body: <p>I am using this config to mount drive that is read-only to docker image:</p>
  
  <pre><code>volumes:
    - name: drive-c
      hostPath:
        path: /media/sf_C_DRIVE
  containers:
    ...
      volumeMounts:
      - name: drive-c
        mountPath: /c
  </code></pre>
  
  <p>When I try to write (mkdir) to this folder (which is virtual-box read only mounted folder) inside docker image, I get:</p>
  
  <pre><code>mkdir: can't create directory 'somedir': Read-only file system
  </code></pre>
  
  <p>Which is OK since this is read-only filesystem (<code>C_DRIVE on /c type vboxsf (rw,nodev,relatime)</code>)</p>
  
  <p>Is it possible to somehow make this folder writable inside docker container? Changes does not need to be propagated to hostPath. I read something about overlayfs, but I'm not sure how to specify this in Kubernetes yaml.</p>