Linuxexit code > 0

No space left on device

$cp: error writing 'file': No space left on device

Analysis

The disk partition is full, or the filesystem has run out of inodes.

Common Triggers

  • Disk partition full.
  • Too many small files consuming all available inodes.

Debug Checks

  • $Check disk space: df -h.
  • $Check inodes: df -i.

Resolution

1
Delete unnecessary files (logs, cache).
2
Expand the disk partition.
3
Clean up old Docker images/volumes: docker system prune.