Why am I still getting Docker daemon connection error?

Why do I still get “cannot connect to the Docker daemon at unix:///var/run/docker.sock. is the docker daemon running?” even after trying all known solutions?

I’ve been trying to run Scrapy Splash using Docker, but no matter what I try, I keep getting the error: cannot connect to the Docker daemon at unix:///var/run/docker.sock. is the docker daemon running?

Here’s what I’ve done so far:

Ran the container with and without sudo

Added my user to the docker group

Ran newgrp docker and rebooted

Verified that the dockerd and docker-containerd processes are running via ps aux

Despite all this, the same error persists. Has anyone faced a similar issue where Docker appears to be running, but commands still fail with this error? What else can I try to resolve this?