Docker no space left on device

Docker engine uses /var/lib/docker to store the images and container runtime environment.

Looks like the disk mounted to /var/lib/docker is full. You can verify the size using the command du -sh /var/lib/docker.

Few options you have are -

  • Mount a disk with a good amount of space based on the number of images & applications you are running.

  • Remove unused images or stopped containers completely to obtain some free space.
    Few commands that helps are $ docker image rm <image-name/image-id> and $ docker container rm <container-name/container-id>

2 Likes