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
0
votes
1 answer

What all happens underneath the command Service Update?

When we run the following command, which of the following events does not occur? $ docker service update --replicas=5 --detach=true nginx1 a) The state of the service is updated to 5 replicas, which is stored in the swarm's internal storage. --I…
Kamlendra Sharma
  • 687
  • 2
  • 10
  • 37
0
votes
1 answer

Get swarm node name from container

I have swarm nodes and we are deploying containers, from the containers I want to update records in database, like I want to update in my database, which node serve the request. Is there any way to know using environment variable or something else,…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
0
votes
1 answer

Do replicated docker contianers in swarm mode contain multiple copies of data?

I have recently started learning docker. However when studying swarm mode I see that containers can be scaled up. What I would like to know is once you scale conatiner in replicated mode will the data within the container be replicated too ? or just…
vjx
  • 43
  • 1
  • 4
0
votes
2 answers

Docker stack doesn't update container data by tag

I'm trying to setup zero downtime deploy with docker stack. I succeeded running everything on the server, but when i try to update existing stack with a new tag, data in container doesn't changes. No errors occur and docker stack ps outputs…
0
votes
2 answers

Docker Swarm not scheduling containers when node dies

EDIT NEVEMIND THIS QUESTION. I found that one of my services, which is using a Docker.DotNet, was terminating the services marked as Shutdown. I've corrected the bug and have regained my trust in Docker and Docker Swarm. Thank you Carlos for you…
hugomau
  • 163
  • 1
  • 10
0
votes
1 answer

Why are my services not showing up on the network after started in docker swarm?

After fiddling around for a couple days with what was new to me a week ago, I'm kind of stuck and would like your help. I've created a docker swarm with some Pi's running Ubuntu server 20.04 LTS and when I use the command: $ docker stack deploy…
0
votes
2 answers

Add a VM running Ubuntu as a worker node in Docker Swarm

I'm trying to create swarm consisting of 2 nodes, using docker-machine, it is easy to provision a VM and add it as a node, but I want to create a swarm using a ubuntu VM machine and Windows docker as manager without using…
Ajey
  • 9
  • 2
0
votes
0 answers

Docker swarm: how does load balancing work

I run a service in swarm mode. I have one manager and two worker nodes and the service has 6 replicas divided on the three nodes. I can reach my service with manager:8080, worker1:8080 , worker2:8080 without any problem. Now, when I drain or…
martin
  • 135
  • 5
  • 12
0
votes
1 answer

nginx-proxy+docker swarm => load balancer not working

I am trying to use nginx-proxy with Docker Swarm mode. I have a stack for nginx-proxy and a stack for a whoami container which is replicated 3 times. THe problem is that when I query the cluster, I always get response from the same whoami. When I…
0
votes
1 answer

Apache Druid failing to connect to zookeeper, Apache Druid are deployed as docker image in one container

I am trying to deploy Apache -Druid in docker container. Image is built successfully. All the services including zookeeper are starting normally when Docker Image of Apache-druid is deployed. Here is my setup, I am deploying Druid docker image on…
0
votes
1 answer

No overlay network created on worker node during docker swarm stack deploy

I have Docker swarm cluster with overlay network (name overlay-test) with single-manager and 2 worker nodes. One of worker node contains only database server container. When I deploy stack on cluster and my stack doesn't contains instructions to…
0
votes
1 answer

Problems with Docker swarm manager on Google Cloud and Oracle Cloud VPC

My scenario has 7 nodes, 4 running in AWS (each one in a different account), 1 running in LINODE, 1 running in Google Cloud and 1 running in Oracle Cloud. Every node is using external IP, and I checked firewall ports into the provider and ensure…
0
votes
1 answer

Docker Swarm CE, Reverse-Proxy without shared config file on master nodes

I've been wrestling with this for several days now. I have a swarm with 9 nodes, 3 managers. I'm planning on deploying multiple testing environments to this swarm using Docker-Compose for each environment. We have many rest services in each…
XenoPuTtSs
  • 1,254
  • 1
  • 11
  • 31
0
votes
1 answer

Docker swarm same image different build

Im using Docker version 19.03.3 with docker swarm, and docker registry. I want to know how can i use the same image but with a different build. my swarm.yml : version: '3' services: db: image: 127.0.0.1:5000/postgres:11.5 …
0
votes
1 answer

Docker swarm mode on RHEL

I have been trying to run a single node docker swarm for testing on RHEL 7.6. firewalld is disabled and not running. Services are running on an overlay network. I noticed that I can't connect to the published port either from the host or outside. …
donnie
  • 2,981
  • 2
  • 16
  • 24