...
To make sure you can communicate with your Swarm cluster, open a command prompt window and ping a node in the cluster:
Code Block |
---|
ping cluster-node-ip |
For example:
Code Block |
---|
ping 172.16.0.32 |
If the node does not respond, try to ping another node IP address. Do not continue until you can successfully ping a node in your cluster. This verifies ICMP reachability but not necessarily that the node is available on port 80 for HTTP requests. It is not definitive, as a node could potentially be unavailable via ICMP through the network, but still be available via port 80. Regardless, it is a good, simple test for reachability. Similarly, you could run the following to test port 80:
Code Block |
---|
telnet 172.16.0.32 80 |
How to Correctly Use cURL
...