PyCharm fails to add interpreter when docker container has ENTRYPOINT set

Viewed 33

In PyCharm we are adding a Python Interpreter from a docker container. The docker container has a default ENTRYPOINT set. Using PyCharm 2022.2.1.

Go to: File -> Settings -> Project -> Python Interpreter -> Add Interpreter -> On Docker

Step 1/3: Select Pull and enter the image username/image:latest

Step 2/3: Next pulls successfully

Step 3/3: Select the system python interpreter Click Create

At this point, we see an error Python interpreter process exited with a non-zero code 1, and the error text shows that the ENTRYPOINT for the container was executed and errored out.

Is there a way to add a docker container to PyCharm that has a default ENTRYPOINT set? This didn't seem to be a problem in older versions of PyCharm that we configured with this same image.

0 Answers
Related