Coder.comC
Coder.com2y ago
13 replies
Marc

Docker in Docker docker-compose volume

Hi, I have a Docker in Docker setup with a git repo inside that has a docker-compose.yml. One of the containers has a volume that maps the current folder to a folder inside the container. The issue is that using a Docker in Docker setup, the current folder "." is mapped to the host (which not exists), not the current workspace container.

volumes:
- '.:/var/www/html'

How I can map the current folder (as it would work in a local/host setup)?

Thanks.
Was this page helpful?