ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 139 - DCA discussion

Report
Export

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

Solution. 'docker swarm nodes'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

= The command 'docker swarm nodes' is not a valid command to list all nodes in a swarm cluster from the command line.The correct command isdocker node ls, which can be run on a manager node to view the details of all the nodes in the swarm1. Thedocker swarmcommand is used to manage the swarm itself, not the nodes.For example, you can usedocker swarm initto create a new swarm, ordocker swarm jointo add a node to an existing swarm2.Reference:

Manage nodes in a swarm | Docker Docs

docker swarm | Docker Docs

asked 08/11/2024
Timo Fahlenbck
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first