Services and User Management
What does docker image prune remove when it is run with no flags?
Show the answer
Correct answerA. Only dangling images, the untagged images listed as <none>
AWhy this is right: With no flags, image prune removes only dangling images, the untagged <none> entries.
BWhy not this: Removing all unused images, tagged ones included, needs the -a flag.
CWhy not this: docker image prune never removes containers; docker container prune does that.
DWhy not this: An age limit applies only with --filter until=, and the default ignores age.
Without flags, docker image prune deletes only dangling images, which are untagged layers shown as <none>. Removing every image not used by a container requires the -a flag, and an age limit needs --filter until=.