Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [docker-swarm]

Part of the docker software suite to cluster docker servers into a single virtual service.

0
votes
0answers
20 views

How do i configure my docker services to communicate with one another in a swarm?

I'm trying to fix service-2-service dns inside my swarm. I'm instantiating 3 docker swarm services using the docker remote api. They startup fine, and i can access their content from inside the ...
0
votes
0answers
12 views

Does Docker Swarm have anything comparable to StatefulSets?

Our company uses Docker Swarm and we need to create a task id registry in order to horizontally scale numerous high memory model service replicas across our computer cluster and subsequently control ...
0
votes
0answers
22 views

Container unable to connect to external Oracle DB only on specific host!

I have built an image based on the corporate JDK image for our Java application, which needs to connect to Oracle DB. I deployed it using docker stack on TWO other servers in another availability ...
0
votes
0answers
47 views

Can I configure a swarm node to automatically pull latest images and restart containers?

Right now I'm using Docker Compose to host 15-20 services for my home lab. All of these are running on a single machine which is physically in my house. I have no interest in scalability (i.e. ...
0
votes
0answers
10 views

Possible to preferably route incoming traffic to local task(s)/container(s) on worker in a swarm cluster?

I know the mesh networking and ingress load balancing is a great thing about swarm, but I was wondering if there a possibility that when a swarm worker receive a request, it always forwards it ...
0
votes
0answers
26 views

Send logs to logstash from another swarm stack

I have 2 stacks in my docker swarm. One is elk (Elastic search, Kibbana, and Logstash) and the other is my web application. For some reasons, I don't want to use the same stack for elk and app ...
0
votes
0answers
25 views

Where do I save docker-compose files of a swarm?

We are running Docker Swarm + Ceph. All runs okay. We plan to move more of our internally developed as well as third party applications to Swarm. Now the issue I have is as follows: Let’s say I ...
2
votes
2answers
29 views

Why `docker stack` needs Docker to run in swarm mode? What are the implications when working on a single node?

I am experimenting with docker stack as a replacement to docker-compose. But I had the following message on my first deploy attempt: sudo docker stack deploy --compose-file stack/app-stack.yml app-...
1
vote
1answer
345 views

Docker stack deploy doesn't pull images

I'm launching through Ansible (just SSH basically) a docker stack deploy, the issue is also true when launching directly from a manager: docker stack deploy --prune --with-registry-auth -c /docker/...
1
vote
0answers
18 views

Docker Containers fails to DNS resolve on subnet 10.0.2.0/24

The ultimate problem I am facing is this: [root@527eb70c04c9 my-service]# ping google.com ping: google.com: Name or service not known Inside my container, I can't resolve public domains, although ...
0
votes
0answers
126 views

ucp-reconcile container exited with status code:

I am getting this error when trying to install UCP 3.1.1. The command used to run the UCP is : sudo docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp:3.1.2 ...
2
votes
1answer
23 views

How to create a preemptable docker container?

Is there any way by which I can set a lifetime for a container after that much of time it should be stopped automatically and only awake when someone send a request. I wanted something like ...
0
votes
0answers
38 views

Docker service host is not available inside container

I am trying to create a mongodb cluster based on this resource. The service host name is not available inside the container. I followed the following steps: Creating virtual machines: docker-...
4
votes
1answer
71 views

Will Docker Swarm work if masters are spread over 3 continents?

I need to deploy a highly available Docker Swarm on Azure. I created a VNet in 3 locations: Brazil South (my location), East US and West Europe. Then I enabled network peering so VMs in these ...
1
vote
0answers
166 views

Hostname from nodeexporter in Docker Swarm

I have setup my monitoring with the cadvisor, node-exporter, prometheus, grafana stack in my clustered environment using docker swarm. What is the easiest way to get my actual hostnames picked up by ...
1
vote
0answers
631 views

How do I fix a “heartbeat failure” in Docker Swarm?

My cluster is currently located in a single data center. I've been trying to change that by adding a single worker node from another data center, but so far it hasn't worked. I'm able to make this ...
2
votes
1answer
44 views

How do I prevent service A from being placed in the same node as service B in Docker Swarm?

From the docs, I could only find information about placement restrictions based on node attributes, likes labels and its role. However, I couldn't find how to configure placement based on the services ...
0
votes
0answers
35 views

Not able to install Docker CE 17.x or 18.x on RHEL Linux

I am trying to install docker latest version using the below curl commands: $ curl -fsSL get.docker.com -o get-docker.sh $ sh get-docker.sh But this script is not working for my RHEL 7.x Error : ...
1
vote
1answer
68 views

Executing a command in running docker swarm service

I am trying to run a Django project in docker swarm mode. The problem is I want to index the Elastic search container which needs to be run only after postgres completes the SQL dumping process (only ...
1
vote
1answer
33 views

Is it ok to logout after calling docker stack deploy?

If I immediately terminate the process that called docker stack deploy will the docker swarm continue? My use case is this: In my CI job I ssh into my swarm cluster node. I copy the new stack.yml ...
0
votes
0answers
121 views

Bridging DMZ and Docker Swarm cluster

In find myself in a situation where part of an application lives in DMZ for security compliance reasons and the other part lives on the LAN. The instances on the LAN do not use a lot of ressource and ...
1
vote
1answer
133 views

Docker Swarm loop

I have written my own simple docker image. It works fine. Then I created my docker swarm with only two nodes a master and a slave and started a service with the following command: docker service ...
3
votes
0answers
1k views

Options to assign a static ip to a service running in docker swarm

Situation: docker swarm with 3+ nodes service running in the swarm with replicas=1 and restart=always swarm hosts have multiple interfaces - one for each vlan, with the same name service is deployed ...
1
vote
2answers
449 views

Join a Linux Docker swarm with a local Windows Docker for test purposes

I'm currenlty trying to connect/join a Linux Docker Swarm cluster with my Windows machine in order to test a stack without sending the stack over and over to my test cluster under Linux. My problem is ...
1
vote
1answer
478 views

Docker Swarm join-token not working

I am trying to add a new node into my swarm over the internet but it doesn't seem to connect through a proxy. I am trying to proxy using Caddy. The proxy configuration results in the same as for any ...
1
vote
0answers
58 views

How to avoid running on the same docker swarm node when healthcheck fails x times

Let's say I have the following setup: swarm-00: Manager swarm-01: Worker swarm-02: Worker Now I start a new nginx service docker service create --replicas 2 --health-cmd /check.sh --restart-max-...
1
vote
1answer
294 views

Error while trying to run docker redis image on Alpine Linux 3.7.0

Specifications Microsoft Windows [Version 10.0.14393] VirtualBox 5.2.8 Alpine Linux Extended 3.7.0 Docker Info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 1 Server Version: 17.10.0-ce ...
4
votes
1answer
85 views

Docker managers are losing quorum on AWS

I have deployed Docker EE on AWS by choosing the package directly from the AWS Marketplace: Docker EE for AWS (Standard/Advanced) - BYOL. The cluster has been successfully launched and deployed on AWS....
0
votes
0answers
499 views

How to implement Auto Review Apps on GitLab with Docker Compose and Swarm

I would like to have an Auto Review App available for every branch of my repo. My project is composed of multiple containers, and uses docker-compose.yml, but GitLab's Auto DevOps doesn't support it ...
3
votes
1answer
3k views

Docker swarm replica stays 0/1 and service stays in status new

I have a problem with my docker swarm. I created a new service with the following command: docker-compose config | docker stack deploy -c - serviceNameX --with-registry-auth The docker-compose file ...
2
votes
0answers
1k views

Docker Swarm Service Health Check?

Docker Swarm provides a nice way to configure container health checks in the Docker file or a stack compose file. Health status of a container can be checked using docker inspect <container> or ...
4
votes
2answers
2k views

Docker MongoDB image - How to specify credentials other than in the compose file?

I'm using this docker image https://hub.docker.com/_/mongo/. That image provides a way of initializing a mongodb root database user with env variables which I can specify in the compose file as ...
1
vote
1answer
249 views

Windows Docker in swarm with Linux nodes connection issue

I have the following setup for my docker swarm: three Linux master nodes one Linux slave nodes Windows slave node They are connected with an overlay network. Within the linux nodes everything works ...
2
votes
1answer
185 views

Is a decentralized Docker swarm possible?

I want to run services in our office in containers. The problem I have is that we do not have a spare machine available to act as the dedicated host. So I am considering creating a swarm using ...
1
vote
2answers
119 views

Automated Docker swarm reinitialization and token distribution

Imagine you want to reset your Docker swarm from time to time. How do you distribute join tokens to those zillions of nodes? How much automation is possible here?
3
votes
2answers
64 views

How can secrets be distributed in a docker swarm?

Currently I use env and sql files so that docker compose can load secrets from there and build sql database docker instances with specific user/password. The question is, how can this be ported to ...
6
votes
1answer
688 views

Flask, Gunicorn and Docker Swarm

so I have this nice rest API implemented in Flask running in docker and I am thinking about scaling. This is how I progressed: CMD ["flask", "run", "--host=0.0.0.0"] and docker run -d -p 5000:5000 ...
4
votes
1answer
47 views

Strange orchestration behaviour of a Docker Swarm manager - pile of containers

For some unknown reason, the manager host which gets the command to launch a stack, tries to pile up all the containers on itself; other worker/manager hosts stay unemploed. Unfortunately there are ...
5
votes
2answers
1k views

Docker swarm join linux container Error - remote CA does not match fingerprint

Start docker swarm : docker swarm init --advertise-addr MANAGER-IP Join docker swarm: docker swarm join --token MANAGER-IP:2377 I am using Windows 10, it is working fine with Windows container mode,...
6
votes
3answers
634 views

How to Shutdown Docker Stack on Container Failure

Say I have several docker services using swarm defined as such: version : '3' services: server: image : my_server:latest deploy: replicas: 5 ...
1
vote
1answer
682 views

Docker daemon error on joining swarm node - could not find local IP address - unknown port

Consider the following setup: Three hosts in the same network: Host A - SLES Host B - Ubuntu Host C - Ubuntu Then, the following has worked: Init swarm on A Join swarm at B, make B a manager The ...
5
votes
2answers
199 views

Load balancing kubernetes cluster on budget KVM provider?

There are a lot of cheap KVM providers these days that offer simple nodes with just a single external IP per node, without any load balancing. What is a typical budget load balancing solution for ...
5
votes
1answer
172 views

Docker swarm stop spin up containers at 250

TLDR: Docker won't spin up more then 250 containers. I'm deploying a cluster of 3 docker services to a swarm with 2 nodes. 2 of the services need to contain 1 container (have a replicas: 1 in the ...
3
votes
1answer
284 views

In what all cases would one use an external load balancer over the Ingress routing mesh in a Docker cluster?

Also, would the routing mesh act as an application load balancer? Like for example, if I am having a Docker cluster in AWS, how does the ELB added to it, work? And how would that be different from ...
6
votes
1answer
758 views

Assign DNS name to Docker Swarm containers with public IPv6

I'm trying to understand how I would set up a Docker container (running in Swarm mode) with publicly available IPv6. I know Docker Swarm uses mesh routing, but I don't quite understand how I can ...
12
votes
2answers
411 views

Combine Docker Swarm and Kubernetes

My company is trying to play a little catch-up in the DevOps space. I have been doing a lot of research on containerization of applications and the orchestration systems that go with it. I came across ...