Docker and CI/CD · Junior · Question 30 of 75
Your disk is full of old Docker data. What is a common cleanup command?
- 1
docker clean --all - ✓Correct answer:
docker system prune - 3
docker rm --images
Explanation
It removes stopped containers, unused networks, dangling images and build cache. Add -a for all unused images and --volumes for volumes, carefully.