Docker Community Forums

Share and learn in the Docker community.

Failed to start docker.service: Unit is masked

docker

(Fsejoseph) #1

I download Docker, I run docker run hello-world. It works! THEN I restart my server to make sure it works correctly and I get this after it restarts.I am using Red Hat

Client:
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 20b6775
Built: Wed Jan 9 16:51:30 2019
OS/Arch: linux/amd64
Experimental: false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

When I run

systemctl start docker

I get

Failed to start docker.service: Unit is masked.

I run

sudo systemctl list-unit-files

I get this

docker.service masked

Does anyone know why?

Here is what masked means:


I tried this but did not work
https://www.artificialworlds.net/blog/2015/07/17/docker-fails-to-start-on-ubuntu-15-04/