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

Viewed 4415

Even though my user is on docker group and I can launch docker without sudo, and I'm running idea.sh from my user, whenever I try to connect to docker from within Intellij Idea docker plugin, I get

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

I'm trying the Unix socket method. I already tried multiple restarts and logout.

I'm on Ubuntu 20.04 and Intellijd Idea 2020.3

1 Answers

Adding current user to docker group worked for me:

sudo gpasswd -a ${USER} docker

You might need to create group first:

sudo groupadd docker

restart your OS after those changes

Related