mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Folder shared via volume not mounted in mac #318
Reference in New Issue
Block a user
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 @trompx on GitHub (Jan 28, 2022).
Hello @sickcodes,
I followed the instructions at https://github.com/sickcodes/Docker-OSX#share-folder-with-docker-osx-qemu-macos to mount some documents inside the mac. Unfortunately, the folder I share via volume is not found on the mac.
First I downloaded the catalina from https://images2.sick.codes/mac_hdd_ng_auto.img.
I also downloaded the full pre-installed catalina image, and both the big-sur and monterey image.
For the big-sur and monterey, I run the container to erase the disk then proceed to the installation. Once done, I copied the mac_hdd_ng.img from the installed docker images in /var/lib/docker to a folder owned by my user.
By the way, my user has a UID=1500, and the copied images are owned by 1000:1000 user.
So I have the following images:
For each images I tried the following without success:
Any idea?
Also is it correct that:
-v "${OSX_IMAGE}:/home/arch/OSX-KVM/mac_hdd_ng.img"?-v "${OSX_IMAGE}":/image?Unrelated question: after the macos installation, I want to configure the system a bit and do some more installation. To copy the image from the /var/lib/docker, should I dot it while the guest is still up and running, or I have to shut down first then copy the image? Because the options I change in system preferences (like keyboard or mouse settings) are not saved between docker run.
Also, is it possible to install directly the big sur os inside Dockerfile or I have to download your image first then do the installation manually before copying the image to use it in the naked image?
Thank you in advance
EDIT:
I don't exactly what I did but after a host reboot I can share the folder manually
sudo -S mount_9p hostsharewith the naked image.I still can't automatically mount with the auto image.
@sickcodes commented on GitHub (Feb 8, 2022):
Auto image might need a reset NVRAM since it didn't have a volume when it was made. It's quite an old image, should still works, but Monterey is the best one to use at the moment.