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
• 6,900 points
61 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,620 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 in Docker by Sirajul
• 4,760 points
33 views
0 votes
1 answer
0 votes
1 answer

Is it possible to start a shell session in a running container (without ssh)

use this docker exec -it "id of running ...READ MORE

answered Jul 25, 2018 in Docker by Kalgi
• 37,320 points
33 views
0 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
950 views
0 votes
1 answer
0 votes
1 answer

How to execute docker exec commande inside a docker container ?

If your containers are running on the ...READ MORE

answered Jul 19, 2018 in Docker by Kalgi
• 2,620 points
179 views