[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

0

Hello,

 

Please disable  Docker Compose V2   in the Experimental features in the Docker settings. It should help. 

2

That fixed it, thank you!

0

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?

0

Hello, 

 

it is in the Docker settings: 

0

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:

(geonode_upstream) geonode@HPCIT07-BS:~/PycharmProjects/geonode_upstream$ docker version
Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 17:02:36 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46d9d
  Built:            Wed Sep 16 17:01:06 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
---
The experimental features are off.
 
docker-compose version:
---
(geonode_upstream) geonode@HPCIT07-BS:~/PycharmProjects/geonode_upstream$ docker-compose version
docker-compose version 1.25.0, build unknown
docker-py version: 4.1.0
CPython version: 3.8.10
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
 
0

The documentation says you can disable it using:

docker-compose disable-v2

I haven't tried it though.

1

I have updated to the latest stable release of docker-compose (1.29.2). It does not recognize that command:

geonode@HPCIT07-BS:~$ docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
geonode@HPCIT07-BS:~$ docker-compose disable-v2
No such command: disable_v2
0

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.

0

请先登录再写评论。