Run the same container on all nodes

0 votes
Is there a way to run the same container on all the worker nodes at the same time?

I need this feature for my current project, and wasn't sure if something like this is possible and also i'm very new to docker swarm.

Any help would be appreciated.
Aug 24, 2018 in Docker by lina
• 8,220 points
657 views

1 answer to this question.

0 votes
You can use the global service in the following way.

During your docker service create command pass --mode global as an argument.

syntax:

docker service create --name "name" -p port_number:port_number --mode global "container_name"
answered Aug 24, 2018 by Nilesh
• 7,060 points

Related Questions In Docker

0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,620 points
3,506 views
0 votes
1 answer

What all platforms does docker run on?

Hey @Albert, docker runs on the following ...READ MORE

answered Feb 13, 2019 in Docker by Imran
813 views
+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,908 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
• 7,060 points
1,820 views
0 votes
1 answer

Access IP address of Couchbase container on Docker Swarm cluster

The property .NetworkSettings.Ports is a map, not a struct. ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 7,060 points
996 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