failed to restart docker.service unit is masked code example
Example: Failed to start docker.service: Unit docker.service is masked
sudo systemctl unmask docker
sudo systemctl start docker
sudo systemctl unmask docker
sudo systemctl start docker