docker system prune -f?docker system prune -f on a system with unused containers, networks, images, and build cache. What will this command do?docker system prune -f-f flag forces the prune without confirmation.The docker system prune -f command cleans up all unused data including stopped containers, unused networks, dangling images, and build cache without asking for confirmation.
docker system prune -f removes stopped containers, unused networks, dangling images, and build cache but does not affect running containers.
docker system prune not remove some unused images?docker system prune -f but noticed some unused images remain. What is the most likely reason?By default, docker system prune removes only dangling images (untagged). Tagged images are kept unless --all is specified.
First remove stopped containers, then unused networks, then all unused images including tagged ones, and finally run system prune to clean build cache and any leftovers.
docker system prune --volumes -f?docker system prune --volumes -f. What additional cleanup does this command perform compared to docker system prune -f?The --volumes flag adds removal of all unused volumes to the standard system prune cleanup.
