`Failed to start docker.service: Unit docker.service is masked.`
BeginnerTroubleshootingDaemon, install and permissions
Answer
Likely causes → Service was masked (manually or by a package/Snap change).
Diagnose → systemctl status docker; systemctl is-enabled docker docker.socket
Fix → sudo systemctl unmask docker docker.socket && sudo systemctl enable --now docker.
Prevent → Avoid mixing Snap and apt Docker installs.
More on Daemon, install and permissions
`Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`Beginner`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`Beginnerdockerd fails to start after editing `daemon.json`: `unable to configure the Docker daemon with file /etc/docker/daemon.json`Intermediate`docker: command not found` right after installing Docker Desktop on macOS.Beginner`docker info` shows `WARNING: bridge-nf-call-iptables is disabled`IntermediateDocker service flaps with `failed to start daemon: Error initializing network controller: ... iptables failed`Intermediate