Docker Compose ProcessNotCreatedException Windows 10
I'm trying to use docker compose within Intellij CE (I've replicated this in the EAP release as well) and I'm having issues getting docker-compose to work within Intellij. When I execute docker-compose from the command line, things run fine, so I'm pretty sure I'm missing something within the IDE. I'm on Windows 10, using docker desktop. I am able to connect to docker (via TCP configuration) and see the containers, etc in the Services window.
Deploying 'Compose: docker-compose.yml'...
Failed to deploy 'Compose: docker-compose.yml': com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Docker\Docker\resources\bin\docker-compose" (in directory "C:\Users\ME\git\my-project"): CreateProcess error=193, %1 is not a valid Win32 application
Any help is greatly appreciated.
-jason
IntelliJ IDEA 2020.1.2 (Community Edition)
Build #IC-201.7846.76, built on May 31, 2020
Runtime version: 11.0.7+10-b765.53 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Non-Bundled Plugins: Lombook Plugin, Docker
Please sign in to leave a comment.
Hello,
Please attach screenshot from "Settings | Build, Execution, Deployment | Docker | Tools".
I started having the same issue after I updated phpstorm
Could you please attach screenshot from "Settings | Build, Execution, Deployment | Docker | Tools"?
Hi Yaroslav,
please find screenshot below, thank you
Does it help to add ".exe" at the end of executable path?
Yes, adding .exe extension fixed the issue, thank you
You are welcome! We'll investigate and fix this issue: https://youtrack.jetbrains.com/issue/IDEA-243048
Same issue with Goland 2020.1.3
Had the same issue on Rider 2020.2.1. Adding .exe to the end of the docker-compose executable path solved it for me.
Adding ".exe" in phpstorm "fixed" issue for me in a way that containers are compossable up via ide BUT my app then stopped working because of non-existent tables in postgre. In contrast with compose up via WSL cli - which works flawlessly. That seems to happen because volume path. eg. `/var/lib/docker/acmedb:/var/lib/postgresql/data` resolves to "\\wsl$\Ubuntu\var\lib\docker\acmedb" in case of running via WSL cli, however does not in case of running via ide. (change to relative path is working workaround).
Do you get any error/warning messages? Is it possible to share idea.log ("Help | Show Log in...") after reproducing the issue?