Is it possible to create a docker swarm cluster using nodes on different cloud providers

0 votes

Is it possible to create a docker swarm cluster using nodes on different cloud providers?

Let's say some of them on AWS, some on GCE and some on Azure?

Jul 12, 2018 in Docker by Nilesh
• 7,060 points
1,129 views

1 answer to this question.

0 votes

if your nodes could access each other, then you will be able to create a swarm cluster. It doesn't matter who are your cloud providers or where your node located.

Assume you already have a controller node with swarm and a discovery service (such as consul or etcd) both installed, the you can add a compute node like this:

$ docker run -d swarm join --advertise=<node_ip>:2375 consul://<consul_ip>:8500

Where node_ip and consul_ip should be your controller node's IP.

So the tricky part is, can you make your nodes communicate to each other? Actually this question is not easy to answer. You need to care about IP allocation, network design, routers etc.

answered Jul 12, 2018 by Kalgi
• 2,680 points

Related Questions In Docker

0 votes
1 answer

Is it possible to spin-up a docker host on a cloud platform?

Yes, It is definitely possible to spin ...READ MORE

answered Jul 4, 2019 in Docker by Sirajul
• 59,230 points
770 views
0 votes
1 answer
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,863 views
+1 vote
2 answers
0 votes
2 answers

How to execute docker exec commande inside a docker container ?

You need to get inside the container ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 59,230 points
3,754 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP