Question: Your development machine has many Docker images, but some are no longer used for active projects. To free up disk space, which command would help
Your development machine has many Docker images, but some are no longer used for active projects. To free up disk space, which command would help you clean up unused Docker images?
point
Use docker ps to list all running containers and manually remove their associated images.
Ignore unused images, as they won't affect the functionality of active containers.
Run docker image prune to identify and remove unused images.
Write a script to iterate through all images and compare them to running containers, deleting any unmatched images.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
