Docker-compose doesn't mount volumes with host files with Circle-Ci

I bumped into this, it’s come up several times around the web. Here are some links…

https://discuss.circleci.com/t/docker-compose-yml-and-volume-mounts/10043/12

The essence of the problem is that in the “docker” executor, the volumes are local and the containers are remote, and Docker volumes don’t work non-locally. However if you use the “machine” executor, it will work, since everything is local (but it will be slower to start up and may have an additional cost in the future).

1 Like