I have a dev Docker container on OSX with boot2docker.
I connect to the container and mount my project's source directory in the docker container via...
docker run -it -p 8080:8080 -v /local_src:/container_src foo/bar /bin/bash
When inside of the container_src certain operations are very slow. For example, git status
takes about 8 seconds to complete.
However, it all works fine if I use source that's cloned into the container
Any ideas as to why this would be?
I'm wondering if there's some overhead from a combination of mounting the volume and using boot2docker.