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
1
vote
1 answer
Persistent volumes in docker engine swarm mode across multiple nodes
What's the best way to share volumes across multiple nodes in docker engine swarm mode to achieve data persistence ?
Any references will definitely help .

vivekyad4v
- 13,321
- 4
- 55
- 63
1
vote
0 answers
Swarm: Manager in host + Worker in VM: No containers in workers
I'm trying to deploy a CDN using nginx container with docker swarm.
For now, i have manager in host, and one worker on VM created using docker-machine:
pierpaolo@pierpaolo-Lenovo-G580:~$ docker-machine create -d virtualbox worker1
Running pre-create…

pier92
- 397
- 1
- 11
- 26
1
vote
0 answers
Why are two docker swarm nodes getting the same name?
I'm a Docker swarm mode noob going through the tutorial at https://docs.docker.com/engine/swarm/swarm-tutorial and noticed when I hit the chapter on draining nodes (https://docs.docker.com/engine/swarm/swarm-tutorial/drain-node/) that both of my…

Matthew Adams
- 2,059
- 2
- 21
- 31
0
votes
1 answer
How to use docker swarm mode in wsl2
I am trying to use wsl2 to do hands on on docker swarm mode. However, when I use docker swarm init it initialize the current node as manager and provides token to join worker. However, when i am trying to use the command to join worker it is…

Swastik
- 499
- 1
- 4
- 10
0
votes
0 answers
Docker Swarm mode running many services with healthcheck eventhough replicas=1
I have a single node with Docker in Swarm mode.
I deploy a stack with a service with this config:
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
order: start-first
I hoped it deploys an…

Jasper
- 478
- 6
- 19
0
votes
0 answers
How to run sentry on premise version on docker swarm
I'm new to sentry, We have a running sentry version 9.1.2 and I wanted to uprade to the latest one, How should I deploy it in docker swarm mode, as the repo of sentry self-hosted has no docs to deploy it on swarm network, and there are bunch of…
0
votes
0 answers
On the UCP(unified control plane) we are getting the popup that some services are missing
I am using the UCP for managing the docker swarm services.
But we are getting the popup on our UI
Warning: some services are missing their Swarm placement constraints. This may cause Swarm services to run unexpectedly on Kubernetes nodes. See…
0
votes
1 answer
Error connecting from Traefik to a service running on a diferent swarm node
This is my stack file:
services:
traefik:
image: traefik:v2.9.6
ports:
- 80:80
- 443:443
deploy:
placement:
constraints:
- 'node.hostname == arasaac2'
labels:
- traefik.enable=true
…

user2670996
- 2,654
- 6
- 29
- 45
0
votes
0 answers
not receiving real IP of the client from Nginx in docker swarm mode
When I used nginx in docker swarm mode I always got the IP of the nginx container instead of the real public IP of the user.
my stack:
version: '3.9'
services:
nginx_proxy:
image: 'nginx'
ports:
- '80:80'
- '443:443'
after…

osama Abdullah
- 193
- 1
- 12
0
votes
1 answer
Docker swarm route to containers on same node
I have a 3 node swarm cluster, with each node having a haproxy ingress for TLS termination and a httpd server (deployed to swarm in global mode).
Haproxy uses httpd's service name to connect to a backend, but docker resolves (or routes via virtual…

user80551
- 1,134
- 2
- 15
- 26
0
votes
1 answer
Docker deploy swarm instance on specific node matching instance index
Using docker swarm, I am trying to deploy N instances of my app on N nodes in a way that each app is deployed on the node with the corresponding index. E.g.: app1 must be deployed on node1, app2 on node2, ...
The bellow is not working as it…

Enissay
- 4,969
- 3
- 29
- 56
0
votes
0 answers
Docker Swarm - Connection problem with the kafka service
I have a problem with a docker-compose in swarm.
This is my docker-compose:
version: "3"
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
deploy:
replicas: 1
ports:
- "2181:2181"
environment:
-…

Fabio_F
- 1
0
votes
1 answer
When using docker swarm stack, only Traefik does not see the env vars from the .env file
I'm trying to use env vars to define the host and credentials for the Traefik dashboard, but Traefik doesn't see them. All of the env vars are present when I verify them inside the docker container.
Everything works well with hardcoded values.
I…

shapale
- 123
- 2
- 9
0
votes
1 answer
docker swarm unlock key is lost
Hi I've lost the docker swarm key. I know it can't be recovered. However Is there a way to delete existing swarm at least ?
Or would I be not able to use that machine with docker ever again ?

axel
- 21
- 7
0
votes
1 answer
Docker Swarm mesh routing doesn't work for independent subnets
I have a manager and a worker node, manager is on cloud and worker is my personal computer so they're on different sub-nets. Both are listed as ACTIVE.
My main problem is that creating a service and scaling it works as intended, both the manager and…

doneforaiur
- 1,308
- 7
- 14
- 21