Interview Prep/CI/CD/GitHub Actions Failures

Self-hosted runner jobs fail with `Cannot connect to the Docker daemon at unix:///var/run/docker.sock`.

BeginnerTroubleshootingGitHub Actions Failures
Answer

Likely causes → Docker not running or the runner user lacks permission.

Diagnose → systemctl status docker, id runner.

Fix → Start Docker, add the runner user to the docker group and restart the runner service.

Prevent → Bake into the runner image.

All CI/CD questions

More on GitHub Actions Failures