Question
Docker Pipeline Plugin: Uncertain Agent Provisioning on Low Traffic Jenkins
Rin Finch
0 reputation · 19 Nov 2025, 17:13 UTC
83.7K views0
Goal
Reduce idle infrastructure costs for a sporadic Jenkins workload by using the Docker Pipeline plugin to spin up temporary agents only when builds run.
Constraints & Uncertainty
- Choosing the underlying Docker host—local Docker daemon, Docker Swarm cluster, or Kubernetes—affects scalability, isolation, and operational overhead.
- The plugin does not automatically prune unused containers in all Jenkins versions, potentially leaving orphaned containers that consume disk space.
- Container resource limits and cleanup policies must be configured explicitly to avoid performance regressions or cost overruns.
Unresolved Questions
- Which Docker host type (local, Swarm, or Kubernetes) provides the optimal balance of cost savings, isolation, and ease of maintenance for a low‑traffic Jenkins environment?
- What configuration or post‑build steps are required to reliably prune or remove idle containers across all supported Jenkins versions?
- How do resource limits specified in the Docker Pipeline configuration impact build execution time versus cost in this on‑demand agent model?