Docker Community Forums

Share and learn in the Docker community.

Deploy 2 servers in Cluster


(Barioucha) #1

is there any tutoriel on how to create, deploy 2 servers in cluster using Docker services. Thanking you in advance.


(Bryce Ryan) #2

I can recommend some of the tutorials on our Play with Docker platform. For multi-host clusters specifically, you can have a look at the Docker Orchestration Hands-on Lab, here: https://training.play-with-docker.com/orchestration-hol/ . The lab includes multiple nodes, with guidance on how to create and manage the cluster, as well as run and scale an application.

Please note that a freely available Docker ID is required to use the lab. If you don’t already have one, it’s fast and free to create one: see https://hub.docker.com/

Best of luck in your journey with Docker!


(Archimedes Trajano) #3

nice I didn’t know about this.though I don’t think I would need it myself except for a refresher. It’s good to see that it is still Swarm Mode and it is not dead yet :slight_smile:

For @barioucha here are the instrucitons I have to set up a docker node on AMI but it can be applied to any VM. That would install the instance to set up the swarm after that it is a matter of

docker swarm init 

That will provide you the token to run on the other nodes

docker swarm join <the token>

(Barioucha) #4

@trajano Many thanks for your help, really appreciated :slight_smile:


(Barioucha) #5

Thank you very much :slight_smile: