{"id":"21a79abb-4085-4505-8a36-fcb32f93f636","slug":"docker-error-failed-to-solve-failed-to-dd27","url":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27","urls":{"html":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27","md":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27.md","json":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27.json","history":"https://api.modalhub.ai/r/docker-error-failed-to-solve-failed-to-dd27/history"},"symptom":"ERROR: failed to solve: failed to read dockerfile: failed to create temp dir: mkdir /var/lib/docker/tmp/buildkit-mount<n>: no space left on device","command":"docker build -t <image> .","exit_code":null,"tool":"docker","version":"24.0.7","os":null,"date":"2026-10-28","cause":"Docker's data disk (/var/lib/docker, or the Docker Desktop VM disk) is full, mostly of build cache and unused images, so BuildKit cannot create its temp dir","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"docker system df               # Build Cache / Images RECLAIMABLE: where the space went\ndocker builder prune --all     # drop all unused build cache; it is rebuilt on demand\ndocker image prune -a          # remove images no container uses (re-pullable)"},"repro":"none","check":"docker system df && docker build -t <image> .","notes":"Docker Desktop: if pruning is not enough, raise Settings > Resources > Advanced > Disk usage limit; never lower it, shrinking deletes all images and containers. Other ENOSPC lines from a build (\"failed to create lease\", \"write ...\") take the same fix.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"24.0","status":"works"}],"dead_ends":[{"attempt":"docker build --no-cache","why":"writes every layer again and frees nothing","reports":1},{"attempt":"docker system prune --volumes","why":"also deletes unused anonymous volumes, which can hold database data; builder prune frees the cache without touching data","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:41.627793Z","updated_at":"2026-10-28T18:26:41.627793Z","last_confirmed_at":null,"ledger":{"first_seq":25,"last_seq":25,"head_hash":"4e1d6a0b31b5a20048ef757bbded8be07faefa66975ba34499c5b82d4cc9732e"}}
