sudo docker rm -v $(sudo docker ps -a -q -f status=exited)
sudo docker rmi -f $(sudo docker images -f "dangling=true" -q)
docker volume ls -qf dangling=true | xargs -r docker volume rm
3 줄이 입력하기 싫다면 한줄로 퐝
sudo docker system prune -a -f
https://stackoverflow.com/questions/31712266/how-to-clean-up-docker-overlay-directory
how to clean up docker overlay directory?
I'm running docker via CoreOS and AWS's ECS. I had a failing image that got restarted many times, and the containers are still around- they filled my drive partition. Specifically, /var/lib/docker/
stackoverflow.com
'Tool > Docker' 카테고리의 다른 글
Failed to start Docker Application Container Engine (0) | 2024.02.28 |
---|---|
우분투 22.04에 도커 설치하기 레츠기릿~ (0) | 2024.02.02 |
도커에서 안드로이드 실행하기: 심층 가이드 (1) | 2024.01.28 |
Failed to get D-Bus connection: Operation not permitted (0) | 2024.01.24 |
도커 컨테이너 리소스 실시간 보기 (0) | 2024.01.16 |