Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
mounted host volume empty when daemon outside dind #78
I develop 'app' on an OSX laptop ('host') that runs a docker-daemon inside VirtualBox ('dev') (created via docker-machine). As my ci/cd utility ('rouster') grows, so do its dependencies. To encapsulate them, I've created an image ('rind'), which inherits from dind.
Happily, I can mount ~/src from host to rind and mount it again from rind to app and it works.
Presently, I use both
Uncertain that prod should run dind, I repointed rind's client at dev's daemon by setting env_vars ( DOCKER_CERT_PATH, DOCKER_TLS_VERIFY, DOCKER_HOST, and DOCKER_MACHINE_NAME).
Sadly, app now sees the mounted volumes, but they have no contents.
Thank you for these terrific tools and for any advice you may have.
Correct. Rouster uses both Docker and Docker-Compose.
I wrote a blog post about that kind of use-case:
I hope it helps!