Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [docker-swarm]

Docker-swarm is a tool that is able to create a cluster of docker nodes and deploy containers in this cluster.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

docker swarm - highly available database

I am using high availability on two servers, where I use docker swarm with two manager nodes (one is the leader) with their respective applications (backend and frontend) and I use haproxy to redirect ...
user avatar
0 votes
0 answers
15 views

Set up a single ip for egress / ingress traffic on a docker swarm

I have a docker swarm with 3 vms: node1: 192.168.10.1 node2: 192.168.10.2 node3: 192.168.10.3 Is it possible to have an ip 192.168.10.4 for both ingress and egress traffic. I know one way of doing ...
user avatar
1 vote
1 answer
56 views

Docker Swarm Distributed File System with local storage

I'm looking for a distributed file system solution/network file system which can be used in the following scenario: I have a Docker Swarm with many hosts, but each host is essentially self-contained ...
user avatar
0 votes
0 answers
38 views

Docker Swarm connection refused only one node

Running a docker swarm cluster with 3 nodes where only 2 are workers. All DNS names of the services are pointed towards the Node A. The problem was discovered because when using a registry repo one of ...
user avatar
  • 143
0 votes
0 answers
34 views

Docker swarm with TOMCAT and NGINX as load balancer

I am trying to set up a docker swarm where NGINX is used for the load balance of the swarm nodes. docker swarm init --advertise-addr 192.168.99.153 Also, I add the two nodes as a swarm docker swarm ...
user avatar
0 votes
1 answer
19 views

Docker container does not register host name in docker-internal DNS

I use Docker to implement a Nextcloud service. For this, I use the official nextcloud-apache image, an Nginx reverse proxy, certbot, and MariaDB. Nothing special, really. My docker instance runs in ...
user avatar
  • 1
0 votes
1 answer
120 views

Get real requester IP in containerized NGINX reverse proxy

I have Docker Swarm stack with nginx as reverse proxy set up on OVH vps. I was trying to make use of allow/deny directives in location, but if I set deny all; it wouldn't work even for the ip's added ...
user avatar
  • 1
1 vote
1 answer
175 views

Ensure Docker traffic for node in Swarm exclusively passes through a VPN connection

I have two nodes in a Docker Swarm cluster. One of those nodes has an OpenVPN client connection to a VPN provider on interface tun0. My goals are, Any services assigned to this node exclusively use ...
user avatar
0 votes
0 answers
20 views

Does "docker swarm leave" sends any kind of SIGNAL to the containers to give them a chance to gracefully shutdown?

I wasn´t able to find an answer to this and simple tests let me think, that docker is killing the containers without any SIGNAL. If this is really the case: How can I remove a node from the swarm ...
user avatar
  • 131
0 votes
0 answers
39 views

How to add a network interface to Docker Overlay network?

How can I add a network interface (either a physical like eth0 or virtual like tap) to Docker Overlay network overlaynet? So that my interface becomes part of the layer 2 network with the other ...
user avatar
0 votes
0 answers
22 views

Docker swarm HA - restarting manager node while original node is unavailable

I've got a network of five docker managers, 1 through 5. (IP addresses x.x.x.101 through 105) The managers all joined with docker swarm join --token xxxx x.x.x.101:2377 As such, I expect to be able to ...
user avatar
0 votes
0 answers
23 views

docker swarm temporarily stops accepting request in production

I am running an angular application in docker swarm in production. Randomly the application stops working for like 10 minutes. The containers are running fine. I see the arp -a says the arp incomplete ...
user avatar
  • 101
0 votes
0 answers
81 views

Gluster mount keeps crashing

I'm running a small set of Docker Swarm nodes on Raspberry Pis, and using glusterfs as shared storage for the docker volumes. I originally set this up while on Ubuntu Server 21.04 (hirsute) which has ...
user avatar
  • 650
0 votes
0 answers
34 views

How to switch from docker swarm to kubernetes?

We have a docker swarm setup on four aws ec2 ubuntu machines. Two of them acting as managers. Now, instead of managing ourselves, we want to port to a managed service like aks/eks for kubernetes. I am ...
user avatar
2 votes
0 answers
124 views

Docker Swarm over IPSec VTI (Unifi site-to-site)

I have setup a Docker Swarm using 3 servers; Master node Home - local IP 192.168.178.250 Worker node 1 Remote - local IP 10.10.10.200 Worker node 2 Remote - local IP 10.10.10.250 Both sites have a ...
user avatar
  • 71
0 votes
0 answers
84 views

Hoy to query by service name with endpoint_mode=dnsrr from host network

I'm configuring some databases in a swarm cluster environment to use endpoint-mode = dnsrr Documentation says (https://docs.docker.com/network/overlay/): "A DNS query for the service name on the ...
user avatar
  • 121
0 votes
0 answers
129 views

Elasticsearch on docker fills up the disk quickly with no apparent reason

For quite a few months everything was working fine and this problem didn't exists. After a crash loop in one of the containers which started producing a lot of logs the server got full. That problem ...
user avatar
0 votes
0 answers
25 views

persistent volume for a SaaS project on docker Swarm & ON MY OWN Servers / VPS (non-AWS, non-Azure): what to use for the MySQL & for the file-uploads?

I am not sure, what architecture / which way to go for the persistent data of my docker Swarm SaaS webapp. A draft of the layout with traefik_proxy and some context for a better understanding of my ...
user avatar
0 votes
1 answer
535 views

HAProxy - Cannot chroot /var/lib/haproxy

I am trying to run haproxy in docker by following this article from the haproxy blog. https://www.haproxy.com/blog/haproxy-on-docker-swarm-load-balancing-and-dns-service-discovery/ I am getting the ...
user avatar
  • 101
0 votes
1 answer
149 views

Docker node gets down after promoted from worker to manager

Docker swarm consists of 3 nodes: ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION ec9gxe01ofk38xb3o6hg8xccv docker-worker01 Ready ...
user avatar
0 votes
0 answers
55 views

API requests delayed among docker swarm cluster's nodes & containers

In the process of migrating our docker infrastructure to a docker swarm cluster we are experiencing performance issues when containerized APIs are calling outside ressources (e.g. elasticsearch ...
user avatar
0 votes
0 answers
38 views

Is there any inbuilt K8S.Model class for AuthConfig just like in Docker.DotNet.Models

I am having a Dokerswarm application(.Net) that is using Authconfig class for storing information [username, passord, serveraddress, tokens etc] for authenticating with the registries. The same ...
user avatar
  • 255
0 votes
1 answer
480 views

PHP-FPM Docker container behaves differently regarding engine (docker-compose vs Swarm)

one PHP-FPM container (7.2), member of classical LAPP stack, correctly exposes port 9000 when launched with docker-compose but nothing when started by Docker Swarm. Should I mention that container is ...
user avatar
  • 127
1 vote
1 answer
1k views

Docker Swarm. Containers in one overlay network but on different nodes can't reach each other via tcp

I have a docker swarm cluster with 12 nodes. Containers deployed on single node can reach each other fine via overlay network, but when they are deployed on different nodes, there are connectivity ...
user avatar
0 votes
0 answers
257 views

How to fix a node in docker swarm?

I have a 4 node cluster in AWS, which 2 nodes are continuosly getting diconnected and sometimes rebooting works and sometimes need to reboot all the nodes in the cluster to get all back. [ec2-user@ip-...
user avatar
  • 237
0 votes
0 answers
59 views

AWS S3 links return 403 when application is run using Docker Swarm, but works fine when run with Docker Compose

I have a Django application on EC2 (ubuntu) instance using S3 for static & media files, which is set up currently using Docker Compose. I'm trying to convert it to use Docker Swarm, but in doing ...
user avatar
0 votes
1 answer
466 views

Fail2ban on CentOS 7 with Docker-powered Traefik ban OK without iptables rule addition

I set up a Traefik instance run by Docker engine in Swarm mode with a "classical" configuration (see below, for sake of brevity I only put relevant [to me] parts. Feel free to ask more ...
user avatar
  • 127
0 votes
1 answer
416 views

Graylog does not receive logs from Docker Swarm Services

I'm new with Graylog and I'm trying to use Graylog on a Docker Container, but the logs from the others containers does not arrive on Graylog and nothing is displayed on the Graylog web interface ...
user avatar
  • 101
0 votes
0 answers
44 views

How to install DB2 luw on docker swarm?

There is docker image for DB2 luw provided by ibm. Image name: ibm/DB2 But, it requires --privileged=true to be passed ,else it won't work or connect. Getting permission denied error even though ...
user avatar
  • 237
0 votes
2 answers
1k views

How to setup privileged in docker swarm?

I am running a db2 container sample using this docker command. Reference docker image docker run -itd --name mydb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=Notallowed1! -...
user avatar
  • 237
0 votes
0 answers
177 views

"docker service scale" waits forever if nodes don´t have enough resources

I have docker swarm with a service. the service is limited like this to prevent the server from running out of memory: deploy: resources: limits: memory: 800M ...
user avatar
  • 131
0 votes
0 answers
181 views

One shot docker service

I have some containers that need to be started as services in a swarm cluster. The point is that the container will run a service at a certain time and after that it must be removed. How do I remove a ...
user avatar
-1 votes
1 answer
161 views

Docker Swarm and load-balancing of Varnish persistent TCP connections (VIP)

I have a Varnish HTTP cache running in front of 40 workers. These workers are running on two identical Docker nodes (node-1 and node-2, 20 on each) as a unique service (web_workers). We're using ...
user avatar
  • 99
0 votes
1 answer
2k views

How to setup Docker Swarm + Traefik 2.4 + domain-based routing on bare metal with CLI?

I would like to scale my little Docker webapp and make it highly available. I have been using Docker for many years and K8s seems overly complicated, therefore I am looking into Docker Swarm. Colorful ...
user avatar
1 vote
0 answers
26 views

External loadbalancer for docker swarm in Openstack Magnum

Does anybody know how to configure an external loadbalancer for docker swarm nodes in openstack magnum? Or is it possible?
user avatar
1 vote
1 answer
187 views

docker swarm container bind address other than 0.0.0.0

I got a multi-node docker swarm setup with the following interfaces: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:...
user avatar
  • 333
2 votes
1 answer
411 views

Accessing different host's docker containers via portainer

I have a few containers (running various services) on my ubuntu server and i manage those containers via portainer, which is also one of these containers. I would like to also manage a pihole ...
user avatar
0 votes
1 answer
671 views

Run a remote playbook

I have a situation where I have the AWX repo cloned into the /tmp/ folder on a remote docker swarm container and I am already using ansible playbooks. What I am trying to do is run the playbook I have ...
user avatar
0 votes
1 answer
932 views

Merge few files in Ansible lookup file

So far I use simple code to deploy Docker stacks. I don't want to use community.general.docker_stack module, due to its ridiculous requirement: the stack definition (docker compose yml file) needs to ...
user avatar
0 votes
0 answers
249 views

docker swarm mysql database not connecting, how to fix that?

I am using below command to create a docker swarm service. docker service create --name mysql_2 -p target=3306 -e MYSQL_DATABASE=mydb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest After service ...
user avatar
0 votes
0 answers
51 views

How to restrict docker swarm resource utlization

I have installed docker swarm on an ubuntu machine on aws. After that, I have spinned up few services on that. After few services the machine got hang and unable to connect. Everytime, I need to ...
user avatar
1 vote
1 answer
137 views

haproxy peers as swarm deployment

I am trying to set up an active-active cluster with swarm and haproxy. I am struggling with the peers definition as it takes hostname and IP address into account. With swarm this can be a bit tricky. ...
user avatar
  • 117
0 votes
0 answers
27 views

Ubuntu server 'partially' responsive

I have an Ubuntu 18.04 server that has periodically unresponsive - I can ping it, and it appears that some https services are running (albeit v. slowly), however it hangs if I try to log in (on the ...
user avatar
0 votes
1 answer
83 views

Docker Swarm dynamic ingress

I am new to Docker Swarm, and am standing up a small enterprise instance for an organization that plans to use it in part for developers to deploy custom developed apps to. We are able to spin up ...
user avatar
  • 141
0 votes
1 answer
103 views

Can a Docker Volume plugin be installed via Global Service in Docker Swarm?

I'm currently researching ways to provide stateful storage to docker containers in Docker Swarm. I've come across the vsphere storage for docker volume plugin (https://storagehub.vmware.com/t/vsphere-...
user avatar
0 votes
0 answers
26 views

Options to grow a Docker host into an orchestrated [nano]cluster

I'm seeking a little advice, I have a Fedora Server 32 VM as a Docker (not Podman) host. I think I may have outgrown it so basically either I add more resources to the VM or I add another VM and ...
user avatar
  • 111
1 vote
0 answers
83 views

How do I upgrade a Mongodb replica set running in a Docker swarm?

I'm running a Mongodb cluster with two routers, 3 config servers as a replica set and 4 single node shard servers. The routers and config servers are running in a Docker swarm but the shards run on ...
user avatar
  • 73
0 votes
1 answer
66 views

Is there a way to limit a task to run on certain nodes, but not restrict to?

I'm using a Docker Swarm which spans multiple data centers. The Swarm runs in a "virtual private cloud". One of the data centers participating in the setup has a somewhat slower link than ...
user avatar
  • 1,434
0 votes
1 answer
48 views

When deploying a swarm to kubernetes are swarm labels secrets, config still available?

When deploying a swarm to kubernetes are swarm labels secrets, config still available and accessible through /var/run/docker.sock? I am asking since I have a custom Spring Cloud Gateway ...
user avatar
0 votes
1 answer
843 views

Docker Container Logs for short lived containers

I have a docker swarm stack and an application that run various docker containers to perform certain services. Sometimes those services take 10 minutes, some times, 3 seconds. Looking for a solution ...
user avatar
  • 107