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
Remove terminated instances ( managers ) from swarm , and recover swarm state
I have a docker swarm cluster, masters running on 6 AWS instances, during some testing, we accidentally terminated 3 instances ( running masters). Now the swarm state seems not working generating error like :
Error: rpc error: code = Unknown desc =…

Surya Prakash Patel
- 711
- 6
- 14
1
vote
1 answer
Question on Elasticsearch shards on Docker Swarm
I am planning to configure a 3-node docker swarm with elastic stack deployed on it. Once configured and the shards being assigned, I have 2 part questions:
If we configured the container storage to write to persistent storage (local) - In the…

Steve
- 93
- 1
- 7
1
vote
0 answers
How to configure keepalived for one HAProxy container without the Ingress routing mesh on Docker Swarm
I try to follow this blog post to setup "One HAProxy Container Without the Ingress Routing Mesh" on the Docker Swarm. Except that instead of 3 VMs I have 3 VPS nodes and each has its own static public ip address.
I'm not familiar with keepalived and…

Alexandre A.
- 1,619
- 18
- 29
1
vote
2 answers
How to provide a global .htpassword file to multiple Docker Swarm Stacks?
I am running around 20 service stacks on a docker swarm host that all expose their individual https frontends which are protected by basic auth using Traefik (same username and password for all services).
I would love to centrally manage the…

Jabb
- 3,414
- 8
- 35
- 58
1
vote
0 answers
Docker Swarm mode with Ubuntu and Mac
I ran docker swarm init on master node
Then ran docker swarm join --token SWMTKN-1-xxxx 192.168.1.105:2377 from worker nodes.
I have total 5 nodes (3 Ubuntu, 2 mac)
I deploy by docker stack deploy -c docker-compose-worker.yml --with-registry-auth…

eugene
- 39,839
- 68
- 255
- 489
1
vote
1 answer
How Does One Use DNS in Docker to Reference All Replicated Containers by the Same DN?
I have a stack of microservices running on a single host. The stack basically consists of 2 stateless php web servers, and a stateful mysql database. I use a .env file to import the predefined container names to the php config files when the…

Shōgun8
- 482
- 10
- 20
1
vote
1 answer
Portainer in Docker swarm stack with Traefik refuses to connect
I am trying to include Portainer in a docker-compose swarm, consisting of WordPress + MySQL and Traefik (reverse proxy). I am using the following definition:
version: '3'
services:
traefik:
image: "traefik:v2.0.0-rc3"
command:
-…

ChrisM
- 2,128
- 1
- 23
- 41
1
vote
1 answer
Having trouble understanding Docker Service port publishing
I need your help to know if I'm understanding correctly the way docker publishing works.
I created a custom Image with Dockerfile. The Dockerfile is as follows:
FROM mcr.microsoft.com/dotnet/framework/wcf:4.8
COPY ./ .
RUN…

Giovany
- 11
- 1
1
vote
0 answers
Deploy cadvisor globally with Docker Swarm using Traefik frontend
I'd like to deploy cadvisor globally using Docker Swarm but would like to be able to access GUI per server.
I was thinking about using Traefik and was hoping to use {{.Node.Hostname}} option in Docker Compose.
cadvisor:
networks:
-…

Matt Fine
- 11
- 2
1
vote
1 answer
Is there a way to specify the time duration for which services should run using compose file
I have deployed services using docker stack deploy in two nodes. I would like to know is there a way to specify the duration of time for which each service should run using a compose file or in some other ways (may be a using an option while…

prajwal kumar A.V
- 11
- 1
1
vote
0 answers
Unable to launch an ephemeral windows slave - Could not pull image: image operating system "windows" cannot be used on this platform
I’ve tried to create a docker template for a simple windows-slave that must work along side already defined templates that make use of a linux-slave image(s). However, I am having the following error:
Jul 04, 2019 3:47:09 PM…

Joao Antonio
- 11
- 1
1
vote
1 answer
Traefik basic configuration for running in a Docker Swarm
From what I can see it goes like this:
docker-traefik.yml:
version: '3'
services:
traefik:
image: traefik
command: --docker # enable Docker Provider
# use Docker Swarm Mode as data provider
--docker.swarmmode
ports:
…

x-yuri
- 16,722
- 15
- 114
- 161
1
vote
1 answer
Dockerfile, docker-compose and swarm mode lifecycle
I'm using docker 3.5. In this docker version I've got an issue with nodes dependencies at start time. I tried to resolve it as it was recommended using external sh script coping into docker file. It lead to more issues. For example `script is…

Sergii
- 7,044
- 14
- 58
- 116
1
vote
0 answers
Swarm mode token - Puppet module
The documentation of a swarm mode setup seems to be missing something important.
It looks like to manage swarm with puppet I need to provide a token.
But to get the token I need to go to the manager node and type docker swarm join-token -q, copy the…

Arya N
- 95
- 1
- 1
- 6
1
vote
0 answers
How to run linux containers in windows server 2016 in aws cloud vm
I am not able to run linux containers in windows server 2016 in AWS cloud.
How to run linux containers in windows server 2016 which requires docker ee version

James Taylor
- 355
- 1
- 4
- 13