skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

    I've solved the issue by re-installing Intellij. My version was from the pop-os application store and causes the problem, but the interesting fact - other things work as expected. So the version from the JetBrains toolbox did the trick.


  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search