ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 61 - DCA discussion

Report
Export

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

Solution: docker volume logs nginx --containers'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

= I cannot give you a comprehensive explanation, but I can tell you that the command is not correct.The docker volume command is used to manage volumes, not to display logs1.The docker logs command is used to display the logs of a container2. The solution suggests using docker volume logs nginx --containers, which is not a valid syntax.To display the list of volumes for a specific container, you can use the docker inspect command with a filter option3.For example, docker inspect -f '{{ .Mounts }}' nginx will show the volumes mounted by the nginx container4. You will need to understand how to use the docker commands and options to answer this question correctly.Reference:

Docker volume command documentation:1

Docker logs command documentation:2

Docker inspect command documentation:3

How to list volumes of a container:4

I hope this helps you prepare for your DCA exam. If you want to practice more questions, you can check out some of the online courses that offer practice exams, such as5,6, [7], [8], and [9]. Good luck!

asked 08/11/2024
Adrian Chirtoc
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first