Incident 2026-11-20: Disk full on Jenkins agent
All builds on agent linux-build-03 failed for 47 minutes with 'No space left on device'.
Incident 2026-11-20: Disk full on Jenkins agent · #jenkins #docker #linux #disk #cleanupIncident
Summary
Section titled “Summary”Jenkins agent linux-build-03 ran out of disk on its root volume. Every job scheduled on it failed with No space left on device for 47 minutes, blocking merges for two teams. Docker build cache and dangling images from the new multi-arch pipeline had grown to 41 GB in four days.
Timeline
Section titled “Timeline”| Time (UTC) | Event |
|---|---|
| 08:52 | First failed build: failed to copy files: write /var/lib/docker/...: no space left on device |
| 09:10 | Second team reports red builds in chat |
| 09:18 | I SSH in; df -hT shows / at 100% |
| 09:24 | docker system df shows 38 GB reclaimable build cache |
| 09:31 | Agent marked offline in Jenkins, pruned dangling images and build cache |
| 09:39 | Disk at 41%, agent back online, failed builds re-triggered |
| 09:41 | All green: resolved |
How I found it
Section titled “How I found it”- Failed console log pointed at
/var/lib/docker(Jenkins: Tail a build's console log). - Linux: Check disk usage per filesystem showed
/dev/nvme0n1p1 50G 50G 0 100% /. - Linux: Find the biggest directories on
/var/libshoweddockerat 44 GB. - Docker: Show disk used by Docker: build cache 31 GB, images 12 GB (8 GB reclaimable).
Root cause
Section titled “Root cause”The new multi-arch pipeline (docker buildx for amd64 + arm64) roughly tripled the build cache per job. The agent had no scheduled cleanup, and the disk alert threshold was 95%, which gave us less than an hour of warning at the new growth rate.
# take the agent out of rotation first (Jenkins UI → Mark this node temporarily offline)docker builder prune -af --filter "until=24h"docker image prune -af --filter "until=72h"Then brought the agent back online and re-ran the failed jobs.
Prevention
Section titled “Prevention”- Nightly systemd timer on all agents:
docker builder prune -af --filter until=24h+docker image prune -af --filter until=72h - Disk alert lowered from 95% to 80% on CI agents
- Root volume on build agents grown from 50 GB to 100 GB
- Move buildx cache to a registry cache (
--cache-to type=registry) instead of local disk
Lessons
Section titled “Lessons”- Pipeline changes that add architectures or caches change disk growth. Check
docker system dfa few days after rollout. - Turned the cleanup steps into Runbook: Free disk space on a full Linux host.
- Gotcha written up: Docker build cache is not removed by image prune.
My DevOps Playbook by Angelo John Calleja