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

When I run ‘docker run hello-world’
output is: ’ docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

See ‘docker run --help’.’
I cannot find a solution because all the solutions use apt-get or systemctl or something else and when I try to install those I get:
’ Could not find a version that satisfies the requirement apt-get (from versions: )

No matching distribution found for apt-get’
or
’ Could not find a version that satisfies the requirement systemctl (from versions: )

No matching distribution found for systemctl’
and I cant find anything online about these issues. I have updated pip using
‘curl https://bootstrap.pypa.io/get-pip.py | python’
and
‘pip install --upgrade setuptools’

Your post leaves plenty of room for assumptions…

Which distributation are you using?
Did you try the docker commands as root user?
Does docker info work? If so, output please!

I tried them with su but that does not work.
‘docker info’ outputs the same message as ‘docker run hello-world’

Thanks for responding to a single line of my response. Two more left :wink:

In my understanding su makes you execute commands as the root user, so I responded to 2 of your lines. As for the distribution, I don’t know. How do I find out?