Swarm mode refers to cluster management and orchestration features embedded in Docker Engine. When you initialize a new swarm (cluster) or join nodes to a swarm, the Docker Engine runs in swarm mode.
Questions tagged [docker-swarm-mode]
285 questions
6
votes
5 answers
docker stats in Swarm mode?
Im trying to setup docker in swarm mode and monitor the resource utilization of all the services/containers running in the swarm.
Docker stats on the manager node doesnt seem to show the resource utilization on the worker nodes.
Is there any way I…

grattttt
- 105
- 1
- 5
6
votes
2 answers
How to connect to Postgresql service inside Docker Swarm?
I have a Docker Swarm cluster setup with 3 servers(1 manager and 2 workers).
I started a Postgresql service using the command below:
docker service create --name postgresql \
--mount src=pg_data,dst=/var/lib/postgresql/data/pgdata \
-p 6542:5432…

anghel adrian
- 162
- 2
- 14
6
votes
1 answer
Nginx behind Traefik Docker Swarm mode real ip
I'm using Traefik as a reverse proxy in front of nginx service on a docker swarm environment. Here's my docker-stack.yml:
traefik:
image: traefik
command: -c /dev/null --web --docker --docker.swarmmode --docker.watch --docker.domain=domain…

ninja_dev
- 383
- 5
- 12
6
votes
1 answer
Docker Swarm discovery is still relevant?
i'm learning about docker swarm, and got confused about the swarm discovery option, i see that lots of tutorials on internet use this option to create containers with docker-machine, but when i enter the documentation on docker swarm doc it…

Kennedy Oliveira
- 2,141
- 2
- 20
- 25
6
votes
2 answers
How do I get host networking to work with docker swarm mode
From this PR that got recently merged into docker's 17.06 release candidate, we now have support for host networking with swarm services. However, trying out a very similar command I'm seeing an error:
$ docker service create --name nginx-host…

BMitch
- 231,797
- 42
- 475
- 450
6
votes
1 answer
Docker Swarm - Can’t pull from private registry
I'm running a service on a Swarm cluster, thanks to docker stack deploy --with-registry-auth and this compose file:
version: "3.1"
services:
builder-consumer:
image: us.gcr.io/my-gcloud-project/my/image:123
stop_grace_period: 30m
…

BOUGA
- 61
- 1
- 2
5
votes
0 answers
Docker swarm in global mode makes too many replicas of some services on update
I have single host docker swarm application set to global mode (in order to have only 1 replica of each service). For some reason after updating the swarm some of the services are showing 2/2 replicas. It looks like the old container wasn't stopped…

Pepsko
- 63
- 6
5
votes
1 answer
Unable to access ports from services across nodes in overlay network in swarm mode
I use the following compose file for stack deployment
version: '3.8'
x-deploy: &Deploy
replicas: 1
placement: &DeployPlacement
max_replicas_per_node: 1
restart_policy:
max_attempts: 15
window: 60s
resources: &DeployResources
…

Rads
- 166
- 1
- 7
5
votes
0 answers
Docker Swarm. How to connect to container running on worker node from the manager node?
I need copy some files from the container running on worker node to manager host.
This operation I need to do staying on manager.
In other words how to access to the container running on worker node from manager?
Can anyone help?

Oleh Vasylyev
- 684
- 4
- 21
5
votes
1 answer
Clean-up unreferenced configs and secrets in Docker Swarm
After some time of creating and removing stacks and services on my Docker Swarm cluster, the lists returned by docker config ls and docker secret ls are quite extensive. However, a lot of the listed configs and secrets are outdated leftovers from…

Dirk
- 9,381
- 17
- 70
- 98
5
votes
0 answers
High latency for reaching a docker container after the swarm has been idle for a while
We have successfully created a docker swarm with several containers and we can say that, in general, it is working fine. We are still developing the first version of our product, so there is nothing deployed on a prod environment yet. Our…

Augusto Altman Quaranta
- 1,526
- 1
- 21
- 32
5
votes
1 answer
Docker Swarm: How to handle persistent data (e.g. database)
I have 3-node docker swarm mode cluster (1 manager and 2 workers).
Now I want to deploy a mongodb service to the cluster and I would like to store the database on a persistent storage that I've mounted under /mnt/data. So basically I want the…

zarathustra
- 1,898
- 3
- 18
- 38
5
votes
1 answer
docker stack deploy do not remove services that are not declared in the current yaml compose file
I am currently using Docker Swarm Mode in pipeline and i use massively docker stack deploy -c compose-file.yml name-of-the-stack as a command to update the stack with the latest docker image. It perfectly works unless i do not remove a service from…

lzecca
- 155
- 2
- 11
4
votes
0 answers
Recovering a docker swarm cluster
We have several docker swarm clusters in production. Each of them has 4-10 nodes. We have 3-5 manager nodes in each of them as per the recommendation to meet raft quorum. These are hosted in EC2 instances in different AWS regions.
Our cluster…

donnie
- 2,981
- 2
- 16
- 24
4
votes
1 answer
How to expose the entire docker swarm cluster to the external world via a public IP?
Am trying to implement a cluster of containerised applications in the production using docker in the swarm mode.
Let me describe a very minimalist scenario.
All i have is just 5 aws-ec2 instances.
None of these nodes have a public IP assigned and…

Nataraj
- 97
- 1
- 10