Intermediate Docker & Containers
Q52 / 100

What does "docker system prune -a" do, and why should it be used carefully?

Correct! Well done.

Incorrect.

The correct answer is B) It removes all stopped containers, unused networks, dangling and unused images, and build cache — potentially deleting images that are not currently used by any container but might be needed later

B

Correct Answer

It removes all stopped containers, unused networks, dangling and unused images, and build cache — potentially deleting images that are not currently used by any container but might be needed later

Explanation

"docker system prune -a" aggressively reclaims disk space by removing all unused data, including images not referenced by any container, which could require re-downloading or rebuilding them later.

Progress
52/100