DCA · Question #129
Will this command list all nodes in a swarm cluster from the command line? Solution: 'docker node Is'
The correct answer is B. No. The command docker node Is is incorrectly capitalized; the correct command to list nodes in a Docker Swarm is docker node ls (lowercase 'ls').
Question
Will this command list all nodes in a swarm cluster from the command line? Solution: 'docker node Is'
Options
- AYes
- BNo
How the community answered
(24 responses)- A4% (1)
- B96% (23)
Why each option
The command `docker node Is` is incorrectly capitalized; the correct command to list nodes in a Docker Swarm is `docker node ls` (lowercase 'ls').
The command contains a typographical error ('Is' instead of 'ls'), which prevents it from being a valid Docker CLI command to list nodes.
The command `docker node Is` uses a capital 'I' instead of the lowercase 'l' for 'ls', making it a syntactically incorrect and unrecognized command for listing nodes in a Docker Swarm cluster.
Concept tested: Docker Swarm node listing command syntax
Source: https://docs.docker.com/engine/reference/commandline/node_ls/
Topics
Community Discussion
No community discussion yet for this question.