ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 85 - DCA discussion

Report
Export

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

Solution: 'docker Is -a'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

The commanddocker Is -adoes not list all nodes in a swarm cluster from the command line, but rather lists all containers, both running and stopped, on the current node1.To list all nodes in a swarm cluster, you need to use the commanddocker node lsfrom a manager node2.This command shows the node ID, hostname, status, availability, and manager status for each node in the swarm2.You can also use the--filteroption to filter the output based on various criteria2.Reference:Docker Documentation,docker node ls

asked 08/11/2024
Gabriel Paschoalatto
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first