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

`cannot run program "docker-compose"` or `docker compose` not found in a build.

BeginnerTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → Compose v1 binary removed; only the docker compose plugin is available, or neither installed.

Diagnose → docker compose version, docker-compose --version.

Fix → Use docker compose (v2 plugin) and install docker-compose-plugin.

Prevent → Pin tools in the agent image.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures