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
The "docker images prune -a" command will remove all dangling images, which are images that are not associated with any existing containers, as well as all images that do not have an associated container. The "-a" option specifies that all images should be removed, regardless of whether they are in use or not.
A is the correct answer:
$ docker image prune [OPTIONS]
--all , -a Remove all unused images, not just dangling ones
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
Highly Voted 11 months, 3 weeks agoCkl22
Most Recent 1 year, 1 month ago