-1

I am trying to configure my python interpreter to use docker but keep getting errors that it cannot connect to the docker daemon, even though I have docker desktop up and running.

screenshot

Connecting to Docker daemon…
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I have tried solutions from: Docker is Running But Pycharm Cannot Connect to Docker Daemon and Pycharm 2022 cannot connect to the docker service. It does not find it

I do not have to use sudo to run docker commands, and I tried disabling the use.targets.api and still got the same error.

If anyone has any advice, it would be greatly appreciated.

Dragonthoughts
  • 2,180
  • 8
  • 25
  • 28
Johnny P
  • 3
  • 3

1 Answers1

0

I had the same problem with pyCharm 2022.3 and Docker for Mac. Restarting Docker for Mac does not help, but after reboot of Macbook i got alert with password authorization request from Docker (about symlinking). Since authorization, everything is working properly.

lobsterick
  • 16
  • 1
  • The symlink (or lack of) seemed to be the issue. After updating docker it now prompts me for pass authz to symlink and now pycharm can connect to the docker daemon. – Johnny P Jan 27 '23 at 17:34