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
53 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 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
• 36,340 points
23 views
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 27, 2018 in Docker by Kalgi
• 36,340 points
22 views
0 votes
1 answer

swarm manager does not connect to nodes docker daemons on AWS

You first need to ssh into the ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 6,900 points
55 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
845 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
140 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.