When running:
docker run -it -v /builds:/builds centos:7.2.1511 bash
My Mac’s /builds directory should be accessible via the resulting container. /builds has the same ownership and permission of my home directory, which DOES mount.
I’m seeing the same. It seems it is only possible to mount directories within the home dir on the host machine. Tried many different permissions/ownership settings.
Currently (Beta 16), Docker for Mac has a fixed set of exported directories which are placed into the bind mount -v namespace. These paths are /Users, /Volumes, /private, and /tmp. To access other paths, during the Beta only, you can prefix the path with /Mac. For example, to mount /builds into a container, use -v /Mac/builds:/builds. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more information. Configurable export path support will be released soon.
Thanks for participating in the Docker for Mac Beta!