Idan Adar
Idan Adar

Reputation: 44516

Can I access the host (OS X) filesystem from the boot2docker VM?

For the sake of the question, lets assume I have the boot2docker VM and I have installed Python (with pip and easysetup), Cloud Foundry and ICE installed.

I am now required to either create or edit a Docker image with artifacts that reside on my host machine, OS X 10.10.3. How can I point to a specific file or even access the host machine's filesystem from boot2docker?

Upvotes: 0

Views: 75

Answers (1)

Jiang
Jiang

Reputation: 588

If you used Boot2Docker-x.x.x.pkg for OS X to install Docker, the VM in VirtualBox has already made a file sharing of the /Users folder between OS X host and itself. So you can simply use /Users in VM as if you are operating in OS X.

If you installed Docker with boot2docker.iso manually, you should add a shared folder by yourself.

Upvotes: 2

Related Questions