Will this command list all nodes in a swarm cluster from the command line?
Solution: 'docker swarm nodes'
= The correct command to list all nodes in a swarm cluster from the command line isdocker node ls, notdocker swarm nodes.Thedocker nodecommand allows you to manage nodes in a swarm, such as listing, inspecting, updating, or removing nodes1.Thedocker swarmcommand allows you to manage the swarm itself, such as initializing, joining, leaving, or updating the swarm2.Reference:
Manage nodes in a swarm | Docker Docs
Manage a swarm | Docker Docs
Limited Time Offer
25%
Off
Irma
2 days ago