Docker is no longer accessible

Docker is no longer accessible without creating a symlink from /run/docker.sock to /var/run/docker.sock

That makes no sense at all because /var/run is just a link to /run.

$ ls -l /var/run
lrwxrwxrwx 1 root root 6 Sep  3 18:14 /var/run -> ../run

Whatever problem you’re having is far more likely to be related to permissions. Try “docker.sock permissions” in your favourite search engine.

1 Like

For me, this is not the case

sudo ls -l /var/run
total 24
-rw-r--r-- 1 root root      5 Sep 19 11:42
---------- 1 root root      0 Sep 19 11:18 cron.reboot
drwx------ 7 root root   4096 Sep 19 11:43 docker
-rw-r--r-- 1 root root      4 Sep 19 11:43
lrwxrwxrwx 1 root root     16 Sep 19 11:58 docker.sock -> /run/docker.sock
drwxr-xr-x 3 root root   4096 Sep 19 11:19 expressvpn
drwxr-xr-x 2 root $MYUSER 4096 Sep 19 11:16 faillock
drwxr-xr-x 4 root root   4096 Sep 19 11:42 NetworkManager

I also tried purging and reinstalling/reconfiguring docker from scratch. Happy to provide other logs as needed, but I don’t believe I have made changes that would result in an actual directory here instead of the symlink like you describe

You must have, because Manjaro sets up /var/run as a symlink to /run. This is the upstream default — i.e. from Arch, and from systemd itself as their upstream.

Strange. Thanks for the comments. I ended up being able to solve this by:

  1. Stop/Disable/Remove Docker
  2. Reboot
  3. sudo rm -rf /var/run
  4. Reboot. /var/run is now a symlink again
ls -al /var/run
lrwxrwxrwx 1 root root 6 Sep 19 14:04 /var/run -> ../run
  1. Reinstall/start/enable Docker. docker.sock is now in /run and docker commands for the docker group run correctly again.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.