This week, trace the failure from the job log to the container, Runner host, or remote service; check disk blocks and inodes before cleaning anything. If usage keeps growing after safe cleanup and retention changes, compare the measured need with the storage options in AmdBit’s current product information before considering a server change.
This is for GitLab Runner operators using the Docker executor who need to locate a “No space left on device” failure without deleting active build data.
It also suits development teams and technical leads managing growing image, cache, and artifact storage.
Last updated October 30, 2026. Version information was checked against GitLab’s official release information; troubleshooting guidance was checked against the linked GitLab, Docker, GNU, and Linux documentation below.
Start with the failure layer, not a cleanup command
A failed job is a symptom, not a diagnosis. “No space left on device” can point to exhausted filesystem blocks, exhausted inodes, a quota limit, or a different system involved in the job. GitLab’s support guidance identifies these as distinct possibilities, so don’t treat every Runner failure as proof that its host disk is full. See GitLab’s disk-space failure guidance.
Begin with the failed job log. Find the first failing command and note what it was doing: extracting dependencies, writing a generated file, building an image, saving an artifact, or contacting a remote service. The final error line may only describe where the failure surfaced. The earlier output can identify which operation was writing data.
Then map the operation to its likely storage layer:
- Job container: A process inside the job container may fail while writing its working directory or temporary files. The Docker executor creates and manages job containers through Docker, so the job’s filesystem view is not the same as the Runner process’s own directory. Review GitLab’s Docker executor documentation.
- Runner host or Docker storage: Images, containers, build cache, and other Docker-managed objects consume host storage. Checking only the directory where the Runner configuration lives can miss the filesystem Docker actually uses.
- Remote service: A registry, artifact destination, or other external service can reject a write or upload. If the host has free space, inspect the command output and service response before deleting local data.
How do you tell whether a Docker executor failure is in the container or on the host? Compare the failing job operation with host-level filesystem and Docker usage. If the job can’t write but the relevant host filesystem has space and inodes available, investigate container limits, quotas, or the destination service. If the Docker data filesystem is full, treat it as a host-storage issue even if the Runner configuration directory has free space.
Avoid guessing the Docker data path. Inspect the host’s Docker configuration and the actual filesystem mounted beneath its data directory. A host can have multiple filesystems, and free space on one does not compensate for an exhausted filesystem on another.
First checks: blocks, inodes, and quotas
Run diagnostics on the Runner host before pruning or deleting files. These commands show different constraints; using only one can send you toward the wrong fix.
df -hT
df -i
df -hT reports filesystem space in human-readable units and identifies filesystem types. df -i reports inode usage. The GNU documentation describes the filesystem reporting options for df. Check the filesystem containing the Docker data directory, the Runner work directory, and any separate mount used for build outputs.
Interpret the results carefully:
- Space is exhausted, inodes remain: Large images, build layers, downloaded dependencies, logs, or artifacts may be filling the filesystem.
- Inodes are exhausted, space remains: A very large number of small files may prevent new files from being created even though the filesystem reports free capacity. This is common to investigate in dependency trees, unpacked packages, and temporary build output; confirm the actual file distribution before removing anything.
- Both appear available: Check quotas, container-level restrictions, mount configuration, and whether the command is running on the expected host. Linux filesystem quotas can impose limits separate from the overall free-space figure; consult the Linux kernel quota documentation.
Where quotas are enabled, ask the system administrator or use the quota tools configured for that filesystem to check the affected user or project. Don’t assume that a successful host-wide df check rules out a quota limit.
How can you confirm an inode problem? Compare the IUse% and inode counts from df -i for the filesystem that contains the failing path. If inode use is exhausted while space remains, identify which directories contain excessive numbers of files. Don’t respond by deleting Docker images unless those images are actually on the affected filesystem and are relevant to the inode exhaustion.
If the failing command runs inside a job container, repeat relevant checks in that environment where possible, then compare them with the host. A container’s view can help locate the failing path, but host checks are still necessary to establish whether the underlying Docker or work-directory filesystem is out of capacity.
Find what Docker can reclaim
Once you know the affected filesystem, inspect Docker’s accounting. Start with:
docker system df
docker system df -v
The first command summarizes Docker disk usage. The verbose form provides more detail about Docker-managed objects and their reclaimable space; see the Docker system df reference. Treat “reclaimable” as a clue for investigation, not as proof that removing an object will have no effect on your next build.
Look at the categories separately:
- Images: Determine whether a failed or repeated build left unused image layers. Check which images your jobs rely on and whether they are available from a registry if they need to be pulled again.
- Containers: Review stopped containers and confirm they are not needed for debugging or a pending operation.
- Build cache: Cache can speed up later builds, but it also occupies storage. Check whether the affected workload benefits from it and whether clearing it would cause the next build to download or rebuild dependencies.
- Volumes and job data: Don’t assume that a volume or working directory is disposable. Identify its owner and purpose before removing it.
- CI artifacts and caches: Inspect the project’s artifact and cache settings, plus any retention rules. GitLab documents job artifact behavior in its CI job artifacts guide.
Check the Runner’s configured build directory and cache settings as well. The Runner advanced configuration documentation describes configuration options that affect Runner behavior. If several jobs share a host, also check whether concurrent jobs are producing temporary files or image layers faster than the cleanup policy removes them.
Don’t use a broad prune as a diagnostic test. First find the full filesystem and the objects occupying it. A cleanup command can change what the next job needs to download, rebuild, or restore.
Clean only after confirming the impact
Choose the narrowest cleanup action that matches the confirmed cause. Read the command’s effect and inspect its target before running it on a production Runner. Docker documents the scope and options of docker system prune; its behavior is not the same as deleting every Docker object.
For example, docker system prune targets unused Docker data, while adding more aggressive options can expand what is eligible for removal. In particular, do not add volume removal simply because a command offers it. A volume may hold data that is not easily recreated. If the issue is build cache, inspect the supported Buildx prune options and select a scope that fits your workflow rather than clearing unrelated Docker data.
A safe cleanup sequence looks like this:
- Record the affected filesystem and Docker usage before changing anything.
- Identify the image, container, cache, or artifact category responsible.
- Confirm which jobs depend on the data and whether it can be recreated or pulled again.
- Use the narrowest suitable cleanup and avoid deleting active or unidentified data.
- Recheck filesystem blocks, inodes, and Docker usage after the cleanup.
- Run a representative pipeline job and confirm the outcome in its logs.
How do you safely clean GitLab Runner images and cache? Use Docker’s usage report to identify the relevant category, then choose a cleanup that targets only confirmed-unused objects. Expect a later job to pull an image or rebuild a cache if that data is removed. Verify that the job succeeds and that the storage trend changes; a clean command returning successfully does not prove the underlying growth problem is fixed.
Check whether the job is still running before removing its associated objects. If you’re unsure whether an object is active or needed, stop and identify its owner rather than guessing. Preserve the logs and measurements from the failure so you can compare the result after cleanup.
A repeatable incident timeline
Use a short sequence that keeps diagnosis separate from remediation:
- At the first failure: Save the job log, identify the first failing operation, and note whether it involves a local write, an image build, an artifact, or a remote response.
- During diagnosis: Check filesystem blocks and inodes on the relevant host mounts. Check Docker usage and verify the actual data directory.
- Before cleanup: Identify the objects responsible and confirm what jobs may need them.
- After cleanup: Recheck the same filesystem and Docker categories, then run a representative pipeline.
- After recovery: Review the trend and adjust retention or build behavior if usage is continuing to rise.
This separates a one-off buildup from a recurring capacity problem. It also prevents you from treating a remote upload failure, a quota limit, and a host filesystem outage as if they had the same remedy.
Use this checklist during the incident:
- [ ] Locate the first failing command in the job log and record the path or destination it was writing to.
- [ ] Check
df -hTanddf -ion the Runner host, including the filesystems used by Docker and the build directory. - [ ] Check quota limits if host-wide space and inode reports don’t explain the failure.
- [ ] Run
docker system df -vand identify which Docker objects account for the usage. - [ ] Review project artifacts, caches, work directories, and job concurrency before removing data.
- [ ] Select a narrow cleanup, document its expected impact, and avoid deleting unidentified volumes or active data.
- [ ] Recheck usage and run a representative pipeline before declaring the incident resolved.
When cleanup doesn’t stop the growth
If the same filesystem fills again, treat that as a recurring storage pattern rather than a reason to repeat increasingly broad cleanup. Record usage at comparable points in the build cycle: before jobs begin, after image builds, after artifact creation, and after the configured cleanup. The goal is to identify which workload produces persistent growth, not to infer long-term needs from one failed run.
Review the controls you can change first:
- Artifact retention: Keep only the outputs needed for the project’s workflow and apply retention rules deliberately. Check GitLab’s artifact behavior before changing settings, especially if teams use artifacts for release or debugging workflows.
- Dependency and build caches: Decide which caches save meaningful rebuild work and which duplicate data across jobs. If you clear a useful cache, account for the next job needing to recreate it.
- Build outputs: Remove intermediate outputs in the job where they are no longer required, but retain anything needed for later stages or artifact collection.
- Parallel jobs: Measure whether overlapping jobs create a temporary peak that exceeds the available space. A peak-capacity problem can persist even when the long-term average appears acceptable.
- Docker data placement: Consider moving Docker’s data directory only after you understand the host’s mounts, backup requirements, service interruption, and rollback path. Plan and test the migration; don’t use it as an unverified emergency workaround.
A migration requires an accountable operator, a known source and destination, a verified backup or other recovery method, and a rollback plan. Confirm that Docker starts correctly and that the Runner can complete a representative job before retiring the old location. AmdBit’s answers page may help with general service questions, but it does not replace a tested migration and recovery plan for your CI data.
Decide whether the Runner needs more storage
Before evaluating a server change, measure the workload that must fit. Include Docker images and build layers, working directories, dependency caches, artifacts, logs, and the largest observed overlap between simultaneous jobs. Keep measurements from more than one representative build cycle when possible. A single successful build or one incident snapshot does not establish a durable capacity requirement.
Separate the need into two questions:
- Can retention and build changes control the growth? If old artifacts, duplicate caches, or abandoned build outputs account for the problem, fix those policies and monitor the result before changing servers.
- Does the measured workload still exceed available storage? If the required working set and peak overlap remain larger than the current usable space after reasonable retention changes, evaluate a larger storage plan or a different server.
Do not assume the product’s advertised disk total is all available for CI data. Confirm the current product’s disk type, number of drives, usable capacity, and whether additional drives are actually offered. Also decide whether Docker data, Runner work files, artifacts, and system files need separate filesystems or backup treatment. Verify the current choices on AmdBit’s server pricing and configuration page; no capacity figure or upgrade option should be inferred from this troubleshooting guide.
For CI teams that have already corrected retention and still need more room for persistent builds, an exclusively assigned AMD physical server can be a better fit than a shared virtual machine: you avoid competing with other tenants for the same host’s resources, and you can assess storage choices against a measured workload. It is not the right answer for a short-lived build or a problem caused by careless artifact retention. First use the checklist to prove that storage is the continuing constraint, then compare your requirements with AmdBit’s current product details. If the measured need justifies a move, review the available ordering options only after confirming the actual storage configuration and your migration plan.
Give Your Build Workloads More Room
Choose an AmdBit dedicated server with 32 cores and 64 threads on an AMD EPYC 7543P processor.
