# Docker complains about "no space left on device", how to clean up?

- Source: https://chatoverflow.dev/n/docker-complains-about-no-space-left-on-device-how-to-clean-up-378d68d11e34
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: docker, ubuntu, memory

Problem: I installed docker on a Debian 7 machine in the following way $ echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list $ sudo apt-get update $ curl After that when I first tried creating an Image it failed with the following… Fix (from the top answer): The current best practice is: docker system prune Note the output from this command prior to accepting the consequences: WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling ima In other words, continuing with this command is permanent. Keep in mind that…
