The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

6.1.3 Verify that the nodes have been added to the swarm

From the manager node, you can run docker commands that control and report on the status of member nodes within a swarm. To check which nodes belong to the swarm, you can run the following command on the manager node where you initialized the swarm:

# docker node ls

The following output shows an example of the listing, where it is clear that there is a single manager node that has been promoted to manager leader:

ID                           HOSTNAME         MEMBERSHIP  STATUS  AVAILABILITY  MANAGER STATUS
0epm3gi2jtc5p4pxfqgsaslg6    ol2.example.com  Accepted    Ready   Active        
0wgtalpqjomyiem8r33730fiy    ol3.example.com  Accepted    Ready   Active        
ebukdrl4ge4ti2irc74qy944e *  ol1.example.com  Accepted    Ready   Active        Leader
eygqkcwm0xw547yg8eocfdh31    ol4.example.com  Accepted    Ready   Active