Interview Prep/Jenkins/Integration failures: SonarQube, Nexus, Docker, Trivy, kubectl

`docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?` inside a Kubernetes agent pod

BeginnerTroubleshootingIntegration failures: SonarQube, Nexus, Docker, Trivy, kubectl
Answer

Likely causes → No Docker daemon exists in the pod (and nodes run containerd), so docker build cannot work.

Diagnose → ls -l /var/run/docker.sock in the container; node runtime via kubectl get nodes -o wide.

Fix → Use Kaniko or BuildKit for builds in pods; avoid mounting a host socket. If you must use Docker, use a dedicated VM agent with Docker installed.

Prevent → Standard image build step in the library based on a daemonless builder.

All Jenkins questions Roadmap: Jenkins

More on Integration failures: SonarQube, Nexus, Docker, Trivy, kubectl