boot2docker / boot2docker

DEPRECATED; see https://github.com/boot2docker/boot2docker/pull/1408
https://github.com/boot2docker/boot2docker/pull/1408
Apache License 2.0
8.33k stars 1.29k forks source link

Add host folder in extended path format for Windows Boot2docker users #868

Open flipmokid opened 9 years ago

flipmokid commented 9 years ago

Hi

I had an issue where I tried running the Docker Distribution project on my Windows machine with a Windows volume for storing all of the images. The issue was caused by the Distribution project using very long folder names which went beyond the Windows max path limit. A solution was found by removing the shared folder and re-adding it in the extended path format.

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe sharedfolder add "C:\Users\abc\VirtualBox VMs\boot2docker-vm\boot2docker-vm.vbox" --name "c/Users" --hostpath "\\?\C:\Users"

It would be good to have this as the default setup for Windows users.

Thanks

josephpage commented 9 years ago

Seems like a good idea. This is a common problem for Windows users. In my team, this happened many times with node_modules/[..]/node_modules/[..]/node_modules/etc folder (Node.js).

The path parameter is set here : https://github.com/boot2docker/boot2docker-cli/blob/master/virtualbox/machine.go#L135

We should care about performance and check if extended path format is not slower than actual shared folder (which is slow already).