How can I fix ‘No space left on device’ error in Docker?

I haven’t found many options for this, the main issue in github is https://github.com/docker/for-mac/issues/371

Some of the options suggested there are:

  • If you can remove all images/containers, you can follow these instructions:


docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls |awk '{print $2}')
rm -rf ~/Library/Containers/com.docker.docker/Data/*

  • You can try to prune all unused images/containers but this has proven not very effective:

docker system prune

  • Use a template image that is larger, install qemu using homebrew and move the image around, see this specific comment: https://github.com/docker/for-mac/issues/371#issuecomment-242047368 but you need to have at least 2x of space left to do this without losing containers/images.

See also: How do you get around the size limitation of Docker.qcow2 in the Docker for Mac?
And https://forums.docker.com/t/no-space-left-on-device-error/10894/26

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)