docker storage ai_generated true

Error: no space left on device

ID: docker/no-space-left-on-device

Also available as: JSON · Markdown
96%Fix Rate
97%Confidence
50Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
24 active

Root Cause

Docker has consumed all available disk space with images, containers, volumes, and build cache.

generic

Workarounds

  1. 96% success Run docker system prune -a --volumes to reclaim space
    Removes all stopped containers, unused images, networks, and volumes

    Sources: https://docs.docker.com/config/pruning/

  2. 88% success Set up regular cleanup with docker system prune in cron
    Add 0 2 * * * docker system prune -af to crontab for nightly cleanup

Dead Ends

Common approaches that don't work:

  1. Deleting /var/lib/docker manually 90% fail

    Corrupts Docker's internal database; may brick the daemon

  2. Increasing disk size without pruning 55% fail

    Docker will fill the new space too if images are not cleaned up

Error Chain

Frequently confused with: