If you get the following mistake when attempting to run a Docker container:
Can not link to the Docker daemon at unix:/ var/run/docker. sock. Is the docker daemon running?
Then you can solve it by running the following:
systemctl start docker
If this does not work since of a root
user problem, then you can do the following initially:
gpasswd -a $USER docker
Extra problems?
Concern 1
If you have actually attempted the above, and get this mistake:
Stopped working to begin docker.service: System docker.service is masked.
Then you can resolve it as follows:
systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service
Concern 2
You can still can’t navigate this, then attempt and utilize the docker daemon service itself:
sudo dockerd