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.
203 questions
0 votes
0 answers
97 views
Redis Sentinel stays in tilt mode and does not promote replica in Docker Swarm (works in docker-compose)
I'm trying to set up a Redis master-replica cluster with Sentinel for HA, deployed using Docker Swarm mode. My setup works fine when I try it locally using docker-compose, but fails in Swarm: In ...
0 votes
1 answer
66 views
Docker swarm task limit hit
I have 3 docker swarm stacks running across 3 hosts with various amount of replicas, with some application from a third-party vendor. I'm only responsible for the OS layer and the docker swarm itself. ...
0 votes
1 answer
68 views
Random periods with failing communication between Nginx and PHP-FPM
Hello Serverfault Community, we are experiencing a very strange problem. Since four weeks now we are encoutering phases of 1-2 hours duration where our Nginx containers can no longer communicate with ...
0 votes
1 answer
74 views
Docker overlay network to restrict access between containers
I have a Swarm cluster with overlay networks. I run many services and most of them need to connect to internal resources like Redis. I created an overlay network redis and include services in that ...
0 votes
1 answer
208 views
Why does my syslog-ng Docker container restart every ~1 minute?
I have a Docker Swarm with various services running. I've added a syslog-ng OSE service using https://github.com/linuxserver/docker-syslog-ng. The syslog-ng stack has the following docker-compose.yml: ...
-1 votes
1 answer
97 views
docker swarm nothing found in stack
I redeployed my Docker Swarm stack, but when I run docker stack ps mystack I get message: nothing found in stack: mystack
1 vote
1 answer
377 views
/dev/kvm in docker swarm service
I'd like to run multiple docker-android instances in docker swarm. But they fail: ERROR | x86 emulation currently requires hardware acceleration! https://developer.android.com/studio/run/emulator-...
0 votes
0 answers
49 views
Running single containers on a cluster/set of docker servers
I'm looking for a solution to run many more or less short-lived single containers (not services / stacks) distributed over several docker servers. There is no need for high-availability / replication ...
1 vote
0 answers
466 views
Nodes marked as "Down" in docker swarm after system restart, despite being up
I'm running a docker swarm on a system with multiple nodes. Often, when the system restarts, some of the nodes are marked as "Down" when I run docker node ls Some of the nodes take a little ...
1 vote
0 answers
410 views
Wireguard client cannot access services running in a Docker Swarm (WG server on host)
I have a home lab, running Ubuntu 20.04 (Kernel v5.10) and on this server, I'm hosting Docker, a DNS Server (unbound), Wireguard, and a couple of web apps. The Docker host is a Swarm cluster with 1 ...
1 vote
0 answers
87 views
Remove/Drop tracked UDP "connections" from LVS connection table (`ipvsadm -Lc`)
Is it possible to explicitly remove or drop a tracked UDP "connection" from the LVS connection table outputted by ipvsadm -Lc? I am using LVS in the context of a Docker Swarm deployment and ...
0 votes
0 answers
665 views
Docker Swarm DNS fails for service name, but service virtual IP address and task IPs are resolved correctly. How to debug this?
This question was flagged as not a good fit for StackOverflow as it is networking focused. Please let me know if there is a better place for it than here. TLDR; In summary, from within a service ...
3 votes
0 answers
467 views
Docker swarm routing mesh does not forward UDP traffic after container restart
I have setup a docker stack with a couple services. One of the service is publishing a UDP port that it is listening for traffic on (it happens to be a Wireguard endpoint, but I don't think this is ...
1 vote
0 answers
396 views
Traefik, docker swarm and portainer. Serving robots.txt file
I'm playing around with my homelab and I'm trying to include robots.txt file. I'm launching traefik and portainer using this docker_compose file. This is using Docker swarm mode version: "3.3&...
0 votes
0 answers
372 views
Docker Swarm nodes on different subnets
I'm trying to setup a docker swarm between two computers I have at home and a VPS, the configuration is the following: Manager ip: 192.168.1.132/24 Manager second ip: 192.168.100.1/24 (VPN) ...
3 votes
1 answer
1k views
How does docker swarm handle volumes mounted on replicated services and How would one integrate this with S3?
Setup: A docker swarm with one manager and one worker node (two virtual machines at play). The docker-stack.yml contains two services primary: bitnami/postgresql image setup as the master postgres ...
1 vote
3 answers
2k views
Some docker swarm worker nodes cannot pull image
So here is a weird situation; I created a production environment using swarm with 1 manager and 3 worker nodes. We are using our private repository to deploy our services on top this stack. The ...
2 votes
0 answers
893 views
Docker won't start stacks
I had a power failure that resulted in a server shutdown, and although I was on a power backup, something happened where the server didn't do a graceful shutdown of docker. Now I cannot run our stack....
0 votes
1 answer
282 views
Docker Swarm Current State Pending
I cannot deploy anymore containers to my Docker Swarm. For example after removing the stack and then deloying, the containers (services) stay at CURRENT STATE Pending for hours and nothing happens. ID ...
2 votes
1 answer
1k views
How use profiles with swarm?
I want to set which profiles use to docker stack deploy. I mean, assume my docker-compose.yml is like this: version: '3.8' services: admin: image: "${ADMIN_IMAGE}" restart: always ...
0 votes
0 answers
157 views
Docker swarm bind port to all host interface
Host machine have next network interface: docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:b5:1e:...
1 vote
2 answers
1k views
Why does the browser client receive responses from an NGINX server at my remote address if my NGINX server is down?
I am observing some strange behavior I cannot explain. I am using chrome Version 110.0.5481.77 (Official Build) (64-bit) I am running nginx/1.22.1 to serve a bundled front end app. When I request ...
1 vote
3 answers
4k views
Docker Stack Deploy doesn't resolve environment variables with default value like Docker Compose does
I have the following example files docker-compose.yml version: '3' services: web: image: webapp:${VARIABLE_A:-${VARIABLE_B}} env.conf VARIABLE_B=123 VARIABLE_A is not set on purpose so it ...
1 vote
1 answer
996 views
Get real client remote ip in docker-swarm httpd proxy?
I'm running a httpd apache2 proxy in docker swarm mode with docker stack deploy. Problem: when I access mymachine:80, the access.log only shows the remote ip of the docker ingress swarm network, like ...
0 votes
1 answer
198 views
Docker in docker - how to ensure it's cleaned up after itself?
I've built a Swarm-based Docker setup for our on-prem DevOps pipelines. Docker-based pipeline agents are started and can perform build operations. I also have a few of those agents capable of building ...
1 vote
1 answer
210 views
Credential spec not respected by Docker Swarm?
I've got a Docker swarm hosted on Windows Server 2022. I've created a credentialspec file since I need the service to use a gMSA. I've also defined a compose file to launch my service: version: '3.8' ...
1 vote
2 answers
573 views
Docker contecting to docker swarm service by using 127.0.0.1 as opposed to localhost
Connection to a docker swarm service published port hangs after connecting. I have deployed a docker service using the command below. docker service create --name my-nginx --replicas 1 --publish ...
0 votes
1 answer
510 views
What if I don't declare a reused volume in the top level `volumes` key of a compose file
The compose specification says: To reuse a volume across multiple services, a named volume MUST be declared in the top-level volumes key. I am currently trying to debug an application with a docker ...
0 votes
1 answer
2k views
Swarm nodes cannot communicate
I have a couple of machines running Ubuntu Server 22.04.1 LTS and Docker version 20.10.17. I've set up a swarm containing both the machines. These machines have ports tcp/2377, udp/4789, udp/7946, and ...
0 votes
2 answers
1k views
How to block access to a specific IP address from docker swarm services
I deployed my service with docker swarm in the Digital Ocean VPC. I want to block access from the service to http://169.254.169.254/metadata/v1.json which is the metadata API for security reasons. ...
0 votes
1 answer
410 views
docker swarm nfs volume not showing all directories
I've hit a wall with trying to figure this out. I'm running docker swarm on two nodes and I created an nfs volume to my synology. Inside of the container: root@container:/data# ls -ltr drwxr-xr-x 4 ...
1 vote
0 answers
208 views
Docker Swarm Ports becomes non responsive
I am running a swarm cluster with only 3 masters. I have a few ports exposed across various services in the swarm. And an Nginx service running in all 3 nodes acts as a reverse proxy. When I start the ...
0 votes
1 answer
1k views
Cron Docker container not rebooting properly after unattended upgrades
Disclaimer, I have very little experience with Docker and servers in general. Most of the server-related things I do by following manuals created by former employees and a lot of Googling. We are ...
1 vote
0 answers
636 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 ...
3 votes
1 answer
3k 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 ...
2 votes
1 answer
3k 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 ...
0 votes
1 answer
10k 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 ...
1 vote
1 answer
1k 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 ...
0 votes
0 answers
137 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 ...
0 votes
0 answers
142 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 ...
2 votes
0 answers
376 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 ...
2 votes
1 answer
4k views
How 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 ...
0 votes
2 answers
5k 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 ...
0 votes
2 answers
1k 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 ...
0 votes
1 answer
942 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 ...
4 votes
2 answers
7k 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 ...
0 votes
0 answers
856 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-...
0 votes
1 answer
1k 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 ...
0 votes
1 answer
1k 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 ...
2 votes
2 answers
9k 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! -...