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

Docker Swarm and Docker Service

Swarm Gurus, I have just setup my very first Docker Swarm environment with 3 hosts. By following the manuals…
Artanis Zeratul
  • 963
  • 2
  • 14
  • 40
0
votes
1 answer

Docker Swarm: Service keep on getting Ready & Shutdown

I have couple of docker swarm nodes, When tried to create the service on Leader with below command. Service creation process still going on it is more-than 40 minutes now. docker service create \ --mode global \ --mount…
user4948798
  • 1,924
  • 4
  • 43
  • 89
0
votes
1 answer

Prometheus alert for too many containers in docker swarm

I have some weird problem in docker swarm - even though I have replicas set to 1, I still sometimes - after deploying new version get too many containers running (like previous container isn't killed after new one is created). To get it working…
0
votes
1 answer

Docker Swarm agent - invalid mount config for type

On one of our docker swarm agent server docker ps -a doesn't show any list of running containers. From docker service status seeing below messages. $ sudo systemctl status docker.service ● docker.service - Docker Application Container Engine …
user4948798
  • 1,924
  • 4
  • 43
  • 89
0
votes
1 answer

Restart FastAPI Automatically on Crash using Docker in Swarm Mode

Python programs can crash with some uncaught exceptions (maybe due to poor coding, dynamic typing etc.). I think if I spin up multiple instances of my app using Docker Swarm Mode (and use proper logging to know about the error and rectify it later)…
Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
0
votes
1 answer

Docker Swarm Routing Mesh

Assuming that I have 2 nodes in the swarm (Node 1 is a manager, node2 is a worker), and using the following compose to launch version: "3.9" services: app1: image: app1image ports: - 8080:8080 deploy: mode: global app2: …
0
votes
1 answer

Where should ENV variables be defined when running app in a swarm mode?

There's an environment variable defined in frontend's Dockerfile: ENV APP_BACKEND_URL=http://localhost/ and gets read when Docker builds a frontend image, and the same variable is defined in app.yml: services: backend: [...] frontend: …
AbreQueVoy
  • 1,748
  • 8
  • 31
  • 52
0
votes
1 answer

Create docker service in manager node

Is there a way to force the creation of a docker service in a Docker Swarm in the manager node? I can not use the --constraint node.hostname=... because I don't know the specific hostname for each stage where I deploy my application
Federico Bellini
  • 365
  • 1
  • 7
  • 18
0
votes
0 answers

Docker Swarm - Is it there a Read Only mode?

Is it possible to access a remote Docker Swarm and have Read Only access? I was thinking about like a docker context connected to a remote Swarm, while having a RO flag enabled, or something like an environment variable that conditions the docker…
0
votes
0 answers

wurstmeister/Kafka : Issue with HOSTNAME_COMMAND and BROKER_ID_COMMAND In Docker swarm

I have docker swarm with 3 node with following stack file version: '3.2' services: zookeeper: image: wurstmeister/zookeeper ports: - "2181:2181" deploy: mode: global volumes: - /zookeeper/data:/data -…
NRaj
  • 121
  • 8
0
votes
1 answer

Docker swarm redirects requests to the "new" and "old" versions of the app simultaneously, during the service update

I'm using this example https://github.com/BretFisher/node-docker-good-defaults I have a nodejs backend app and I have 1 replica of the service. And the "deploy" section in the docker-stack.yml file looks like this: deploy: update_config: …
Alexandr Bur
  • 23
  • 1
  • 5
0
votes
0 answers

Docker Swarm - cannot access the service from the same Host (it works if using docker-compose without stack)

I have a service which is being accessed from other container, and also from the host itself. definition in docker-compose.yaml version: "3.8" services: ads: image: cloud.dev/ads:test1 container_name: ads hostname: ads ports: …
vel
  • 1,000
  • 1
  • 13
  • 35
0
votes
1 answer

Run a one-off task as a service in docker swarm

We want to run a task in a docker service using the one-off global-job mode. docker service create --name ping-google-global --mode=global-job bash ping -c 5 google.com This works but has two shortcomings: when we want to run this again (via the…
Alexander Presber
  • 6,429
  • 2
  • 37
  • 66
0
votes
1 answer

Tweak load balancer for docker swarm mode

I want a lead to the below problem. My understanding: Docker swarm incorporates an ingress and a DNS server that identifies services with their names. It also incorporates inbuilt robust load balancers on every node in the cluster. We can hit any…
0
votes
1 answer

Docker - Inter stack network issues in a single node swarm

I have a single node swarm on Ubuntu 20. I have setup 3 stacks, all using default overlay network. Per documentation containers should be able to communicate with each other without any special setup. But in my case containers across stacks are not…
Adarsha
  • 2,267
  • 22
  • 29