如何修复 Lima 虚拟机上的只读错误
尝试为 docker 创建本地存储库时出现只读文件系统错误。 [1] 我在 Macbook Air M1(苹果芯片组)上使用了这个安装的 lima [2]
chown: changing ownership of 'oracle-19c/.DS_Store': Read-only file system
chown: changing ownership of 'oracle-19c/oradata': Read-only file system
chown: changing ownership of 'oracle-19c/': Read-only file system
任何人都知道如何解决这个问题。我通过选择相关文件夹来更改使用“getInfor”选项的读写权限。
[1] https://registry.hub.docker.com/r/doctorkirk/ oracle-19c [2] https://github.com/lima-vm/lima
Getting read only file system error when try to create local repository for docker. [1]
I used this installed lima [2] over Macbook Air M1 (Apple chipset)
chown: changing ownership of 'oracle-19c/.DS_Store': Read-only file system
chown: changing ownership of 'oracle-19c/oradata': Read-only file system
chown: changing ownership of 'oracle-19c/': Read-only file system
Any one know how to resolve this. I have change the permission to read write with 'getInfor' option by selecting the relevant folder.
[1] https://registry.hub.docker.com/r/doctorkirk/oracle-19c
[2] https://github.com/lima-vm/lima
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
默认情况下,主页是只读的。
您可以尝试在
/tmp/lima
上写入,这应该可行。要使主路径和其他路径默认可写,请执行以下操作:
编辑文件并在挂载部分下设置
writable: true
然后重新启动lima
更多信息: https://github.com/lima-vm/lima/blob/41fd9cc6a1e2bac73666e1f2b11604c7c42227dc/pkg/limayaml/default.TEMPLATE.yaml#L33-L41
By default the home is read only.
You may try write on
/tmp/lima
, this should work.To make home and other paths writeable by default, do the following:
Edit the file and set
writable: true
under mount sectionThen restart lima
Further infos: https://github.com/lima-vm/lima/blob/41fd9cc6a1e2bac73666e1f2b11604c7c42227dc/pkg/limayaml/default.TEMPLATE.yaml#L33-L41
正如@Dunick 回答的那样,我们应该为每个安装的卷添加可写功能到 lima.yaml
As @Dunick answered, We should add a writable feature to lima.yaml for each mounted volumes
就我而言,使用 macOS Sonoma,如果你想做得更快,但有点不安全:
In my case, using macOS Sonoma, and if you want to do it faster, but a bit insecure:
为了能够写入您的主目录,您需要授予
lima
对您的主目录的写入权限。并更改
为
To be able to write to your home directory, you need to grant
lima
write permissions to your home directory.and change
to