Seems to me that this is all working with the assumption that the development is on a Linux box. When developing on windows or mac using a vm such as boot2docker you're going to need to somehow share your codebase from your host machine to the vm and from there mount it as a volume in the docker container.