1 00:00:00,001 --> 00:00:02,134 [No Audio] 2 00:00:02,134 --> 00:00:05,301 Now that both the nodes have joined the cluster as 3 00:00:05,301 --> 00:00:10,067 workers, let's verify it using docker node ls command. 4 00:00:10,101 --> 00:00:14,834 Take a note, that this is part of Docker's Swarm command line. 5 00:00:14,834 --> 00:00:17,234 Once we hit enter, we get all 6 00:00:17,234 --> 00:00:19,801 of the three nodes along with their hostnames. 7 00:00:19,801 --> 00:00:22,767 All of them have their status as Ready and 8 00:00:22,767 --> 00:00:26,401 availability as Active. And if you can notice, 9 00:00:26,401 --> 00:00:29,634 manager also has the status of being Leader. 10 00:00:29,767 --> 00:00:32,500 This is applicable when we have a cluster with more 11 00:00:32,500 --> 00:00:35,634 than one manager. In which case, one of the 12 00:00:35,634 --> 00:00:39,101 managers will act as Leader. There is no confusion 13 00:00:39,101 --> 00:00:41,834 here since we only have one manager and two worker 14 00:00:41,834 --> 00:00:45,567 nodes, so our manager will be Leader by default. 15 00:00:45,567 --> 00:00:48,401 Now we can inspect our manager and worker nodes 16 00:00:48,401 --> 00:00:50,734 from managers shell itself. 17 00:00:50,867 --> 00:00:54,967 Let's type docker node inspect followed by self, 18 00:00:54,967 --> 00:01:00,134 along with '--pretty' flag. We are mentioning self, because manager wants 19 00:01:00,134 --> 00:01:03,734 to inspect itself. And as you can see, what we get 20 00:01:03,734 --> 00:01:08,767 is the node ID, its Hostname, joining timestamp, 21 00:01:08,901 --> 00:01:13,634 Status, and some other information like Platform, 22 00:01:13,634 --> 00:01:16,967 Resources, Engine Version, which is Docker engine 23 00:01:16,967 --> 00:01:23,101 version. Here it is 18.0 6.1 Community Edition and 24 00:01:23,101 --> 00:01:26,467 some security certificates. We can hit the command 25 00:01:26,467 --> 00:01:29,767 for worker-1 and 2 as well and we get 26 00:01:29,801 --> 00:01:32,401 respective information about both of them. 27 00:01:32,401 --> 00:01:35,801 As you can see, all of these three nodes have different 28 00:01:35,801 --> 00:01:38,467 IP, but rest of the things are pretty much the 29 00:01:38,467 --> 00:01:41,434 same. Of course, the roles are different, 30 00:01:41,434 --> 00:01:44,301 which will be explored in further demos.