最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Cannot configure Docker with Pycharm - Stack Overflow

programmeradmin3浏览0评论

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 ?

发布评论

评论列表(0)

  1. 暂无评论