Interview Prep/CI/CD/Jenkins Build and Agent Failures

`docker: command not found` in a stage that uses `docker build`.

BeginnerTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → Docker not installed on the agent, or the stage runs in a container without the Docker CLI.

Diagnose → which docker on the agent; check the stage agent definition.

Fix → Install Docker on the node, or use a daemonless builder such as BuildKit/Buildah/Kaniko in a pod.

Prevent → Label Docker-capable agents and select by label.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures