mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-28 00:55:49 +03:00
[GH-ISSUE #479] read/write shared folder #347
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#347
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @manang on GitHub (Apr 8, 2022).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/479
Hi, I'm trying to add a read/write shared folder. This is my script:
Mac os Can read, but it can't write on /Volumes/hostshare.
How can I add the grants to write data on the volume?
Thanks
Angelo
@manang commented on GitHub (Apr 13, 2022):
I want to add that my vm user has, as uuid, 1001, the uid of the user in the docker image is 1000. I tried to change the uid of the mac os user from 501 to 1001, but no way, I can't write on the shared volume.
Do you have any hint?
@sickcodes commented on GitHub (Apr 17, 2022):
https://github.com/sickcodes/Docker-OSX#share-folder-with-docker-osx-qemu-macos
There are other options such as NFS which might be substantially easier: https://github.com/sickcodes/Docker-OSX#share-linux-nfs-drive-into-macos
@manang commented on GitHub (Apr 21, 2022):
Hi, thanks for your answer. the problem is that the uid of the user of mac os has to be the same to the user in the docker instance and to the user in the host vm.
so, in the first link I can setup a read folder, but not a write folder.
I'm trying with the second
@ugurcan377 commented on GitHub (Jun 17, 2022):
I was having the same problem, was able create and write to files, but unable to create new directories and such. I managed to fix it with changing the
security_modelof the-virtfsfrompassthroughtonone. QEMU documentation explains the differences like thisAfter this change I was able to create directories within the shared folder.
@sickcodes commented on GitHub (Jun 20, 2022):
The easiest way is using sshfs over the network; you get read write to the whole disk