I'm trying to use intellij's docker integration plugin with the following tutorial on Get started with Docker Compose running on a docker-machine installed on windows 10. My project is located here: C:\Users\bob\IdeaProjects\foo
.
If I run docker-compose up
from the command line on my windows host, everything works. If I try to create a Docker deployment using the intellij docker integration plugin and specify the docker-compose.yml, I get the following error.
ERROR: for web Cannot create container for service web: invalid bind mount spec "C:\\Users\\bob\\IdeaProjects\\foo:/code:rw": invalid volume specification: 'C:\Users\bob\IdeaProjects\foo:/code:rw'
Encountered errors while bringing up the project.
No containers created for service: web
Failed to deploy 'Compose: docker-compose.yml': Some services/containers not started
I think this is only an issue with the intellij docker integration plugin. I tried creating a .env with COMPOSE_CONVERT_WINDOWS_PATHS set to either 1 or 0 with no success.
Does anyone have an idea how to fix the intellij docker integration plugin to mount volumes such as .:/code
?