CompTIA Linux+ XK0-005 – Question087

A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?

A.
docker images prune -a
B. docker push images -a
C. docker rmi -a images
D. docker images rmi –all

Correct Answer: A