When I was developing in the Docker environment, when I did docker-compose build
, I got the same error twice, so I posted it so I don't forget it.
I tried two methods because I only knew that there was not enough capacity because I was still learning
This method worked best for me If you repeat build, images will be piled up and capacity will be used.
$ docker image prune
#Can I delete it? Since it works, enter y and enter
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
This is an excellent one that saves space by leaving only the latest build and deleting all others at once!
This was also a little effective
#Check for invalid volumes
$ docker system df
$ docker volume ls -q -f dangling=true
#Delete unreferenced volumes
$ docker volume rm `docker volume ls -q -f dangling=true`
I learned a lot. Thank you very much. https://qiita.com/sakymark/items/df58ea2fd9179eddc566