Skip to main content

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
1 vote
0 answers
20 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 ...
Daniel Baulig's user avatar
0 votes
0 answers
98 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 ...
Zach Smith's user avatar
3 votes
0 answers
120 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 ...
Daniel Baulig's user avatar
1 vote
0 answers
130 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&...
Adam Radomski's user avatar
0 votes
0 answers
203 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) ...
gesucritto's user avatar
2 votes
1 answer
268 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 ...
Ayush's user avatar
  • 131
0 votes
0 answers
54 views

portainer got error after restarting hosts

Im using portainer for docker swarm. Version: portainer/portainer-ce:2.11.0-alpine. Via web UI of portainer, I cannot show any data of my docker swarm (stacks, services,...). When I show service list ...
Hưng Híp's user avatar
0 votes
2 answers
443 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 ...
Harun Barış Bulut's user avatar
1 vote
0 answers
306 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....
John Manko's user avatar
0 votes
1 answer
88 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 ...
PHZ.fi-Pharazon's user avatar
2 votes
1 answer
419 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 ...
Mohammad Mahdi's user avatar
0 votes
0 answers
179 views

Why does docker node inspect not give an IP address that I can connect to?

When I run docker node inspect self the IP address it provides are actually not reachable from either inside or outside a container environment. Is there any reason why that is? The reason I am ...
Archimedes Trajano's user avatar
0 votes
0 answers
262 views

Docker container logs not found after dockerd restart

I am running a Ubuntu 18.04 server with Docker (v20.10.12) containers running on it. I have about 5 containers running at a time and they consume about 1.5GB of memory on the regular, while my server ...
untx_bottom's user avatar
0 votes
0 answers
112 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:...
Unknown.Vagrant's user avatar
1 vote
2 answers
694 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 ...
Anthony O's user avatar
  • 111
1 vote
3 answers
2k 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 ...
RabidTunes's user avatar
1 vote
1 answer
483 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 ...
membersound's user avatar
0 votes
1 answer
100 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 ...
MBender's user avatar
  • 381
1 vote
1 answer
168 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' ...
MBender's user avatar
  • 381
1 vote
2 answers
447 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 ...
Allan K's user avatar
  • 151
0 votes
1 answer
342 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 ...
Christian Galo's user avatar
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 ...
freebie's user avatar
  • 101
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. ...
Quy Tang's user avatar
0 votes
1 answer
344 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 ...
pgreen2's user avatar
  • 213
1 vote
0 answers
161 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 ...
Lokesh Waran's user avatar
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 ...
Jan-Pieter's user avatar
1 vote
0 answers
479 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 ...
Def Soudani's user avatar
1 vote
1 answer
2k 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 ...
Alex Waldenmaier's user avatar
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 ...
Andy's user avatar
  • 121
0 votes
1 answer
9k 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 ...
Pepsko's user avatar
  • 21
1 vote
1 answer
979 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 ...
Matt Olan's user avatar
0 votes
0 answers
106 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 ...
michabbb's user avatar
  • 131
0 votes
0 answers
113 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 ...
uday kiran's user avatar
2 votes
0 answers
314 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 ...
GRX's user avatar
  • 71
2 votes
1 answer
3k 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 ...
PRF's user avatar
  • 141
0 votes
1 answer
4k 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 ...
CodeWeed's user avatar
  • 101
0 votes
1 answer
968 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 ...
Mr.Holub's user avatar
0 votes
1 answer
847 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 ...
nbonniot's user avatar
  • 127
3 votes
2 answers
6k 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 ...
hattivatt's user avatar
0 votes
0 answers
765 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-...
uday's user avatar
  • 412
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 ...
nbonniot's user avatar
  • 127
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 ...
Allan Andrade's user avatar
1 vote
2 answers
7k 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! -...
uday's user avatar
  • 412
0 votes
0 answers
507 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 ...
Fausto Branco's user avatar
-1 votes
1 answer
387 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 ...
Tangui's user avatar
  • 99
0 votes
1 answer
4k 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 ...
bluepuma77's user avatar
1 vote
0 answers
58 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?
Michael Reuben Alagon's user avatar
1 vote
1 answer
926 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:...
tcurdt's user avatar
  • 413
2 votes
1 answer
1k 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 ...
Thefeli73's user avatar
0 votes
1 answer
1k 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 ...
Sou1Aced's user avatar