Home > OS >  Cannot configure docker in intelliji
Cannot configure docker in intelliji

Time:03-01

I have installed Docker on my Pop OS according to the official tutorial (I also created a docker user group and added myself to it). In IntelliJ Idea I am getting: Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running? No such file or directory.

systemctl status docker shows that docker.service is active.

My permissions:

ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Feb 28 09:05 /var/run/docker.sock

enter image description here

CodePudding user response:

You need to :

Add your $user to the docker group:

sudo usermod -aG docker $USER

Log out, and then log back in.

Docker configuration settings:

Unix socket: This is the recommended connection option for Linux.

note

If you get permission denied errors, add the current user to the docker group on the machine, log out, and then log back in. The docker group grants privileges equivalent to the root user. For details on how this impacts security in your system, see Docker Daemon Attack Surface.

CodePudding user response:

one of the easy way to fix this can be below set of commands :
sudo su
systemctl start docker
systemctl enable docker
systemctl restart docker

  • Related