I'm writing docker-compose.yml file for application that should have access to Docker from within container (Docker in Docker) according to blog post here:
https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
The problem is I need to attach host Docker binaries, but I don't know exact path of docker on target system, on some it could be /bin/docker, on others - /usr/local/bin/docker, etc.
I want to have cross-platform solution, just putting something like this
volumes:
- $(which docker):/bin/docker
into docker-compose.yml.
Is it possible with Docker-Compose?