unix:///var/run/docker.sock. Is the docker daemon running?

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

Job for docker.socket failed.
See “systemctl status docker.socket” and “journalctl -xe” for details.
Failed to start docker.service: Unit docker.service is masked.

Just run these command to fix docker

 

systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service

Leave a Reply

Your email address will not be published. Required fields are marked *