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,110 points
26 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
• 6,880 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
• 9,850 points
365 views
0 votes
1 answer

What all platforms does docker run on?

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

answered Feb 12 in Docker by Imran
30 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,110 points

edited Oct 16, 2018 by lina 4,806 views
0 votes
1 answer

Docker ports are working on the localhost but not with public ip

Probably, the reason is that you've included ...READ MORE

answered Jun 12, 2018 in Docker by Damon Salvatore
• 5,510 points

edited Oct 15, 2018 by Kalgi 287 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
1,022 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,880 points
95 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
• 6,880 points
82 views