Questions tagged [docker-swarm-mode]

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.

285 questions
13
votes
2 answers

Docker logs/errors of services of stack deploy

I am deploying a service(s) using swarm stack deploy. I am not able to deploy to other nodes, I wanna see what's wrong but have no way to see the logs of the services/tasks running on those nodes. I tried docker stack ps stackname , which shows…
FraK
  • 919
  • 1
  • 13
  • 21
13
votes
2 answers

Adding a service to a stack after the stack has been deployed

I’m trying to add a service to a stack after the stack was already deployed. But this new service is having trouble communicating with services (redis) inside the stack. This is my current understanding of stacks and services, please let me know if…
11
votes
1 answer

Docker Swarm Mode Error: Joining Two Workers To One Manager

I'm having difficulty setting up a Docker Swarm with two workers and one manager. Everything works fine until I add the second worker. After adding the second worker, the first worker's daemon enters some sort of error state where a simple docker…
10
votes
5 answers

Docker Swarm with image versions externalized to .env file

I used to externalized my image versions to my .env file. This make it easy to maintain and I don't modify my docker-compose.yml file just to upgrade a version, so I'm sure I won't delete a line by mistake or whatever. But when I try to deploy my…
Olivier
  • 1,982
  • 3
  • 23
  • 36
10
votes
3 answers

How to maintain sticky session(session persistence) with docker swarm?

I have one Java based web application which is deployed in jboss-10.1.0(wildfly). I am using docker swarm mode(docker version 1.12.1) to scale my application everything works perfectly but the only issue I am facing is session management. Now let's…
10
votes
2 answers

docker service update vs docker stack deploy with existing stack

I have a doubt in using docker swarm mode commands to update existing services after having deployed a set of services using docker stack deploy. As far I understood every service is pinned to the SHA256 digest of the image at the time of creation,…
Alessandro Dionisi
  • 2,494
  • 4
  • 33
  • 37
10
votes
2 answers

Deploy a docker stack on one node (co-schedule containers like docker swarm)

I'm aware that docker-compose with docker-swarm (which is now legacy) is able to co-schedule some services on one node (using dependency filters such as link) I was wondering if this kind of co-scheduling is possible using modern docker engine swarm…
8
votes
1 answer

Docker Swarm mode routing mesh not working with wireguard VPN

I'm trying to setup a 3 node Docker swarm cluster on Hetzner cloud, using wireguard VPN (setup on interface wg0) to build the local network between nodes. Networking works fine across nodes using VPN IP (ports 7946/tcp , 7946/udp and 4789/udp are…
Alessandro Dionisi
  • 2,494
  • 4
  • 33
  • 37
8
votes
3 answers

Docker Swarm Overlay Network Not Working Between Nodes

i am trying to connect my docker services together in docker swarm. the network is made of 2 raspberry pi's. i can create an overlay network called test-overlay and i can see that services on either raspberry pi node can connect to the network. my…
X0r0N
  • 1,816
  • 6
  • 29
  • 50
7
votes
1 answer

network `hbase` is declared as external, but could not be found. You need to create a swarm-scoped network before the stack is deployed

I've below docker swarm cluster. $ sudo docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION iq7i01ns7ku7zrtaemiucoawi * master.com Ready …
user51
  • 8,843
  • 21
  • 79
  • 158
7
votes
1 answer

client access to docker swarm

I have a docker swarm cluster consisting of one manager and one worker node. Then I configured (tls and DOCKER_HOST) a client from my laptop to get access to this cluster. When I run docker ps I see only containers from the worker node (and not all…
Kenenbek Arzymatov
  • 8,439
  • 19
  • 58
  • 109
6
votes
2 answers

Docker Swarm, multiple hosts not in same local network but reachable over IP

I see a lot of examples running multiple Docker nodes in swarm mode, but they all mention that the nodes shares a local/private network. I was wondering, is it possible to connect two hosts on a swarm that are not on a private network but can still…
thiout_p
  • 717
  • 11
  • 15
6
votes
1 answer

Docker Swarm: what happens if all swarm managers reboot

What I am most interested in is the information I get from docker node ls. Where does the Docker store the information about the joined nodes?
onionknight
  • 101
  • 1
  • 10
6
votes
1 answer

Why to chose role as worker for nodes in docker swarm clusters at all?

Lets say we have a test setup of 10 nodes, 4 managers and 6 workers. When the leader manager fails, the other 3 managers will chose another manager as leader. When this leader as well fails, we only have 2 managers left out of 4. The other managers…
Cravid
  • 653
  • 2
  • 7
  • 22
6
votes
0 answers

How to investigate Docker Swarm Mode shutting down containers?

We have Docker Swarm mode (17.09.0-ce) on 4 nodes. We are trying to deploy 10 services using docker stack deploy and docker-compose.yml. Each service has required memory and memory limit in docker-compose.yml. Some services get killed: $ docker…
relgames
  • 1,356
  • 1
  • 16
  • 34
1
2
3
18 19