Skip to content

fix(asap-tools): store containerd images on /scratch - #895

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
fix/containerd-root-on-scratch
Oct 15, 2026
Merged

milindsrivastava1997 merged 1 commit into
mainfrom
fix/containerd-root-on-scratch

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

Docker's containerd image store ignores data-root in /etc/docker/daemon.json, so images and build snapshots went to /var/lib/containerd on the 63G root disk. On CloudLab nodes this filled / (47G of leftover snapshots), breaking builds with "no space left on device" and sqlite "database or disk is full".

setup_dependencies.sh now sets root = "/scratch/var_lib_containerd" in /etc/containerd/config.toml (rewriting the commented default line, or adding it if missing) and restarts containerd before Docker.

Tested: the config rewrite on a sample config.toml (also when run twice) and bash -n on the script. The same change was applied by hand on the 6 current nodes: / went from 82–100% used to about 16%, with containerd and Docker both running. A fresh deploy with the updated script hasn't been run yet.

🤖 Generated with Claude Code

Docker's containerd image store ignores daemon.json data-root, so image
layers and build snapshots filled the small root disk on CloudLab nodes.
Point containerd's root at /scratch/var_lib_containerd during setup.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@milindsrivastava1997
milindsrivastava1997 merged commit 81fb7c4 into main Oct 15, 2026
11 checks passed
@milindsrivastava1997
milindsrivastava1997 deleted the fix/containerd-root-on-scratch branch October 15, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant