Hacker News new | ask | show | jobs
by elvis635 3965 days ago
Docker under OSX is a real pain to solve ASAP.

I've set Docker on my Linux machine and it's working like a charm. Then I had to do the same for my coworkers running OSX, the vbox shared folders are definitely unusable.

Now it's been few days that I'm trying to find the best way to have a two-way sync in order to sync back changes from docker to the OSX folder (eg. when you upload a file and it's saved in the /public folder, otherwise it'll be lost)

So far I've used docker-osx-dev[0] for 1 way sync (with rsync) and it's working nicely.. they also plan to add the support to unison for a 2way sync

I've also found docker-unison[1] but I haven't found a way to have it working correctly

I'd like to try with boot2docker-xhyve, but it only runs on Yosemite and later

[0] https://github.com/brikis98/docker-osx-dev

[1] https://github.com/leighmcculloch/docker-unison

4 comments

I use docker for development on Mavericks using vagrant + coreos as the host VM and things works nicely [0]. NFS shared folders performance is fine and the configuration is trivial.

[0] https://github.com/coreos/coreos-vagrant

There's https://github.com/codekitchen/dinghy if you want to mount the Mac host volumes inside boot2docker via NFS. We have a Vagrantfile that does this, but dinghy packages it all up nicely.

At the end of the day though, Docker as a development environment is really bad on OS X until a VM vendor fixes file share performance. I really wish Docker would make it a priority to have decent Mac support.

VMware Fusion has fine performance on shared folders. I use it all the time with docker-machine.
Shared folder performance has been a known issue for as long as I can remember, with the recommended solution being to use NFS.. Is this not possible on OSX?