Parallels / docker-machine-parallels

Parallels driver for Docker Machine https://github.com/docker/machine
MIT License
471 stars 35 forks source link

Folders not shared #76

Closed roerlemans closed 6 years ago

roerlemans commented 6 years ago

When i start my Parallels container the folders aren't shared (or mounted)

schermafbeelding 2018-09-24 om 12 56 51

There is no folder /Users/etc/etc

schermafbeelding 2018-09-24 om 12 57 45

romankulikov commented 6 years ago

In the guest (prl-dev virtual machine) Shared Folders are mounted inside /media/psf. Check them out:

# mout | fgrep /media/psf
legal90 commented 6 years ago

Hi @ronn0, Looking at the first screenshot I can say that your shared folder settings look misconfigured. "Home folder only" should not be selected there. Luckily, it's easy to fix. Just run this on your Mac host:

prlctl set prl-dev --shf-host-defined off
prlctl set prl-dev --shf-host-add Users --path /Users

And then restart the VM:

docker-machine restart prl-dev

After that you should see the shared folder mounted to the VM:

$ docker-machine ssh prl-dev -- ls /Users
Guest
Shared
legal
legal90 commented 6 years ago

Note that /Users path is hardcoded in our driver, so you can't mount other folders by default (e.q. you can do it only manually). Here we just follow the behavior of other drivers in upstream, such as vmwarefusion and virualbox.

roerlemans commented 6 years ago

This did the trick. Thanks for that.