How to Configure Docker Swarm with multiple Docker Nodes on Ubuntu 18.04

Docker Swarm is a container orchestration and clustering tool to manage Docker hosts, and is a part of Docker Engine. It’s a native clustering tool provided by Docker which provides high-availability and high-performance for your application. The primary objective of Docker Swarm is to group multiple Docker hosts into a single logical virtual server???this ensures availability and high performance for your application by distributing it over a number of Docker hosts instead of just one.