Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Docker DCA Exam - Topic 5 Question 128 Discussion

Posted by Vivan on Jun 16, 2026 at 08:04 PM

Will this command display a list of volumes for a specific container?

Solution:docker volume inspect nginx'

Suggested Answer: B

= The commanddocker volume inspect nginxwill not display a list of volumes for a specific container.This is becausedocker volume inspectexpects one or more volume names as arguments, nota container name1.To display a list of volumes for a specific container, you can use thedocker inspectcommand with the--formatoption and a template that extracts the volume information fromthe container JSON output2. For example, to display the source and destination of the volumes mounted by the containernginx, you can use the following command:

docker inspect --format=' { {range .Mounts}} { {.Source}}: { {.Destination}} { {end}}' nginx

:

docker volume inspect | Docker Docs

docker inspect | Docker Docs


Get Premium DCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
JA
Jacqueline 2 months ago
I agree with A, it targets the nginx container specifically.
GE
Gerald 2 months ago
B) No, it inspects a volume, not a list.
BE
Belen 2 months ago
A) Yes, it shows details for the container.
JU
Julie 2 months ago
Wait, really? I always thought it would list them!
HE
Herman 2 months ago
Definitely a no, it won't work like that.
RE
Ressie 2 months ago
I thought it would show the volumes too!
IR
Irma 3 months ago
Nope, that's not right.
DI
Dion 3 months ago
That's actually for inspecting a volume, not a container.
JE
Jeannetta 3 months ago
I’m a bit confused because I thought "inspect" could show details, but not a list. Maybe it’s Yes? I need to double-check that.
KA
Kathrine 3 months ago
If I recall correctly, "docker volume inspect" is used for inspecting a specific volume, not listing them. I would say No.
FA
Fallon 3 months ago
I remember practicing a similar question, and it was about listing all volumes. This command seems to focus on one, so I’m not sure.
AR
Armando 4 months ago
I think the command is supposed to show details about a specific volume, not a list of all volumes. So, I’m leaning towards No.
0/2000 characters

Save Cancel