I am on macOS 14.6 and am using PyCharm 2024.3 (Professional Edition) and Docker Desktop 4.36.0. Docker is running :
% docker --version Docker version 27.3.1, build ce12230
I have a docker container which works when accessing it from command line: it has a .py in it which runs fine. This file uses some libraries in the container.
I would like to make PyCharm recognize the Docker container, in such a way that when I click, for instance, on a method from that library, PyCharm jumps to it.
I asked this to ChatGPT and searched the web, including Stack Overflow, but nothing works, here is what I did in Pycharm:
- I went to Settings -> Docker -> clicked on '+' -> OK, so I created a Docker configuration
- Settings -> project:my_project -> Python Interpreter -> Add interpreter -> On Docker ...
But then I see a red circle next to 'Docker server', see screenshot .
Do you know any way around this ?