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
1
vote
0 answers

docker Bad Request ("swarm spec must be named "default"")

I wrote a python script to initialize a docker swarm which works fine, except when I want to give a custom name to the swarm. The documentation mentions the 'name' attribute, but when I do client = docker.from_env() client.swarm.init(name="ddddd" ,…
George Violettas
  • 334
  • 1
  • 14
1
vote
0 answers

how to run single node docker swarm and run pytest in github actions

I am using just a single node for my project. But I still want to use docker swarm mode, to learn and for possible scaling later. I want to write a github action workflow file that will create such a swarm, run pytest on the container, and if tests…
O. Altun
  • 685
  • 7
  • 20
1
vote
1 answer

External load balancer should route to swarm managers, workers or both?

I have an architecture of microservices running into a docker swarm stack. My swarm stack is composed with : 3 Managers (manager only) 3 workers I have an external load-balancer to dispatch requests on the nodes of my stack with a single public…
Sébastien
  • 69
  • 1
  • 8
1
vote
1 answer

Rollback whole swarm when one service fails

Is it possible to rollback another services when only one fails on update with docker stack deploy? For example I have serv1, serv2, serv3. I run docker stack deploy, serv1 and serv2 update without any problems, but then serv3 fails on healthcheck. …
1
vote
3 answers

Error response from daemon: Timeout was reached before node joined

I have been trying to join a worker to a manager node but I'm not able to. My manager node is running on my personal laptop which runs ubuntu 18. The worker node im trying to make is on an ec2 instance which also runs ubuntu. To create the manager…
1
vote
0 answers

Delay Docker Swarm Replicas Reschedule when Node Restart

I currently have a 3 node swarm mode cluster. 1 manager and 2 workers. I have created a service with replicas of 20. When running docker service ps , I do see all replicas have been deployed evenly in 3 nodes. I believe the default…
jlim
  • 909
  • 2
  • 12
  • 24
1
vote
2 answers

Docker swarm overlay, single node, no connection between services

I'm trying to make a connection from one service to another, to achieve it I created an overlay network and two services attached to it like so. $ docker network create -d overlay net1 $ docker service create --name busybox --network net1 busybox…
Adam Starlight
  • 302
  • 3
  • 14
1
vote
1 answer

Controlling the hosts where my containers run with docker swarm

I'm jumping from a local docker-compose building, to a production environment, in which I have 4 vps. The first (the manager) is the one with the least resources. The other 3 have the same and are biggers (the workers). I decided to use docker…
1
vote
2 answers

How to create multiple hosts on docker-swarm with docker desktop

I used to create multiple node on docker-swarm with virtual toolbox. So each node corresponded to creating a new virtual machine. This way each virtual machine had separate IP. Now, docker toolbox is deprecated. I am trying to learn about…
Khan Saab
  • 434
  • 1
  • 8
  • 20
1
vote
1 answer

docker swarm doesn't assign task to new worker node

We are using docker swarm in our production environment. Here is the output of docker node ls command. ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION 5qpi2zmdonheusou7fgkh9m1g …
Ercan Celik
  • 405
  • 1
  • 6
  • 15
1
vote
1 answer

How can micro services do with Docker Compose and swarm mode?

Need help with this MCQ. Please explain the answer if possible How can microservices do with Docker Compose and swarm mode? A. Construct and define multi container application B. Provide analysis reports of container orchestration performance C.…
1
vote
0 answers

How to create multiple Docker Swarm Service using same image?

I am new to Docker Swarm I need to create different Docker Swarm Stack which is accessible via different url for different environment like dev, qa using same image. Ex - service1 - http://service1 service2 -…
Naveen Kumar
  • 1,266
  • 1
  • 21
  • 50
1
vote
1 answer

docker desktop swarm service port not exposed (ingress mode)

I'm trying to apply a demo like in the article : Scale ASP.NET Core Apps with Docker Swarm Mode Unfortunately after creating and start the service on docker swarm , I couldn't access the api http://localhost:5000/api/token . However, when I call the…
Shadi
  • 191
  • 3
  • 13
1
vote
0 answers

Docker - Load Balancing - assigning ports

I've setup a docker swarm with 2 nodes, 1 manager and 1 worker. I have 1 docker image that runs a jetty server on port 8080. When I start the service on the manager node with 4 replicas, I see 2 containers spawned on each node. When I attempt to…
ast
  • 11
  • 1
1
vote
0 answers

Docker swarm: public service not reachable from inside container of the same deployment

My Setup: I have a single machine docker swarm "cluster". Simply said, I have a stack deployment that is composed of two services A and B. Both services are connected (through an external overlay network) to another stack running a traefik proxy to…
SimonT
  • 165
  • 2
  • 11