[Solved] Unable to create docker-compose interpreter
I am following the "Configure an interpreter using Docker Compose" tutorial. At the "Configuring Docker Compose as a remote interpreter" step, I am unable to create the interpreter. The error is shown below. I was able to successfully run the "Configure an interpreter using Docker" tutorial.
If I rename the runnerw.exe, I get the same error but from docker-compose.exe. Running 'docker-compose build' and 'docker-compose up' from terminal seems to work okay.
Error message Docker Compose executable finished with exit code 1. runnerw.exe could not complete successfully. Please see the command's output for information about resolving this problem. Command output: no such service: container:936... Process finished with exit code 1
PyCharm 2021.2.2 on Windows 10.
Docker Desktop 4.0.1
请先登录再写评论。
Hello,
Please disable Docker Compose V2 in the Experimental features in the Docker settings. It should help.
That fixed it, thank you!
Hi,
I get the same error and would like to do this:
> Please disable Docker Compose V2 in the Experimental features in the Docker settings.
But I am unable to find the experimental features in PyCharm Professional 2021.2.3. Could you please give me a hint on how to open these settings?
Hello,
it is in the Docker settings:
This is from the docker desktops settings menu? I do not use a docker desktop client. Instead, I use docker engine on ubuntu with docker-compose:
The documentation says you can disable it using:
I haven't tried it though.
I have updated to the latest stable release of docker-compose (1.29.2). It does not recognize that command:
I uninstalled and reinstalled docker and docker-compose and tested the functionality with the official example listed in the documentation:
https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html#docker-compose-remote
I fixed an psycopg2 version error in the example git project (https://github.com/gannebamm/djangodocker/tree/dockerized) and was able to get it running.
For everyone else running into these issues: Try to reinstall your docker and docker-compose packages.