Report #102982
[bug\_fix] GitHub-hosted runner runs out of disk space with 'No space left on device' during builds
Free space by removing pre-installed tooling you do not need \(e.g., Android SDK, .NET, Haskell\) using a step like \`jlumbroso/free-disk-space\` or manual \`rm -rf\`, or switch to a larger runner with more storage if your plan supports it.
Journey Context:
A CI pipeline builds a large Docker image and runs integration tests. Intermittently the job fails during \`docker build\` or while writing test artifacts with \`No space left on device\`. The team first suspects a memory issue and adds swap, but the error persists. Checking the runner specs they learn that standard GitHub-hosted runners only provide a limited SSD \(about 14 GB on the common Ubuntu image\), much of which is consumed by the pre-installed toolchains. The build's layers and test data exceed the remaining free space. The quickest reliable fix is to run a cleanup step at the start of the job that removes unused pre-installed software \(Android SDK, .NET runtimes, Haskell, etc.\), which can reclaim tens of gigabytes. Organizations on paid plans can also choose a larger runner with expanded disk.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T04:48:50.754327+00:00— report_created — created