Volumes mounted as read-only, is this intentional? #393
-
I was curious to see what sort of filesystem performance gains there were compared to Docker for Mac. I wanted to test a repo that would make a lot of filesystem writes, but in my tests I encountered an error saying the volume was mounted read-only. My apologies for my ignorance, but is this intentional? Should containers launched via lima with volumes be mounted as read-only volumes? For reference, here's how to reproduce:
This will eventually print the following error:
The docker analog that works ok:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
The home is read-only by default. |
Beta Was this translation helpful? Give feedback.
-
Aha, I missed that! Thank you 🙇 |
Beta Was this translation helpful? Give feedback.
-
by default it is read only. to be make it writeable by default do the following:
|
Beta Was this translation helpful? Give feedback.
-
Pretty sure that the current remote file system (sshfs) is slower than the one used in docker (fuse + grpc) ? If you want performance, you probably need to use a filesystem local to the VM - as discussed in #20 |
Beta Was this translation helpful? Give feedback.
by default it is read only. to be make it writeable by default do the following:
write: true
undermount
section$ vim ~/.lima/default/lima.yaml