ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 133 - DCA discussion

Report
Export

Will this command list all nodes in a swarm cluster from the command line?

Solution. 'docker inspect nodes

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

The commanddocker inspect nodeswill not list all nodes in a swarm cluster from the command line.This is becausedocker inspectrequires one or more names or IDs of the objects to inspect1.To list all nodes in a swarm cluster, you need to use the commanddocker node ls2, which will display information such as node ID, hostname, status, availability, and role3.Reference:

docker inspect | Docker Docs

docker node ls | Docker Docs

How to list nodes in a Docker swarm cluster

asked 08/11/2024
mark obrien
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first