{"action":"created","issue":{"url":"https://api.github.com/repos/boot2docker/boot2docker/issues/413","labels_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/413/comments","events_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/413/events","html_url":"https://github.com/boot2docker/boot2docker/issues/413","id":36737010,"number":413,"title":"Q: how can I share a directory in an OS X host to mount as a Docker volume?","user":{"login":"jokeyrhyme","id":479816,"avatar_url":"https://avatars.githubusercontent.com/u/479816?v=3","gravatar_id":"","url":"https://api.github.com/users/jokeyrhyme","html_url":"https://github.com/jokeyrhyme","followers_url":"https://api.github.com/users/jokeyrhyme/followers","following_url":"https://api.github.com/users/jokeyrhyme/following{/other_user}","gists_url":"https://api.github.com/users/jokeyrhyme/gists{/gist_id}","starred_url":"https://api.github.com/users/jokeyrhyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokeyrhyme/subscriptions","organizations_url":"https://api.github.com/users/jokeyrhyme/orgs","repos_url":"https://api.github.com/users/jokeyrhyme/repos","events_url":"https://api.github.com/users/jokeyrhyme/events{/privacy}","received_events_url":"https://api.github.com/users/jokeyrhyme/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2014-06-29T01:17:03Z","updated_at":"2015-05-19T17:01:44Z","closed_at":"2014-09-17T22:41:04Z","body":"The [folder sharing instructions in the README.md](https://github.com/boot2docker/boot2docker#folder-sharing) suggest a \"sharing outwards\" approach: the files are in a Docker volume running a server, and the host connects to the server to access the files.\r\n\r\nIs it possible to have this work in the opposite direction? In my use case, my Git credentials and code tools are all installed in the OS X host, as well as the projects I am working on. But I want to execute these projects in Docker containers via boot2docker. Is there a convenient way I can share host directories with boot2docker so that Docker can mount them as volumes?\r\n\r\nFor my development feedback loop, I don't want to have to rebuild Docker images every time I save a file. And it would be terrific if services running in containers (e.g. Jekyll, grunt-watch, etc) could be notified of file changes in the usual way.\r\n\r\nVagrant uses VirtualBox functionality to share a host folder with the guest VM. What I'm wondering about is that step between the guest VM and containers in the guest VM."},"comment":{"url":"https://api.github.com/repos/boot2docker/boot2docker/issues/comments/103591666","html_url":"https://github.com/boot2docker/boot2docker/issues/413#issuecomment-103591666","issue_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/413","id":103591666,"user":{"login":"brikis98","id":711908,"avatar_url":"https://avatars.githubusercontent.com/u/711908?v=3","gravatar_id":"","url":"https://api.github.com/users/brikis98","html_url":"https://github.com/brikis98","followers_url":"https://api.github.com/users/brikis98/followers","following_url":"https://api.github.com/users/brikis98/following{/other_user}","gists_url":"https://api.github.com/users/brikis98/gists{/gist_id}","starred_url":"https://api.github.com/users/brikis98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brikis98/subscriptions","organizations_url":"https://api.github.com/users/brikis98/orgs","repos_url":"https://api.github.com/users/brikis98/repos","events_url":"https://api.github.com/users/brikis98/events{/privacy}","received_events_url":"https://api.github.com/users/brikis98/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T17:01:44Z","updated_at":"2015-05-19T17:01:44Z","body":"For folks still struggling with the performance of mounted folders and vboxsf, I put together a small open source project called [docker-osx-dev](https://github.com/brikis98/docker-osx-dev) that uses Vagrant + Docker + Rsync, and I'm seeing build performance with mounted folders that is on par with native performance and file watchers work correctly as well, without any need for polling. See [A productive development environment with Docker on OS X](http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/) for more info."}}