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.
187
questions
0
votes
0
answers
31
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 ...
0
votes
0
answers
56
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:...
0
votes
0
answers
38
views
HTTP Base Auth for a Swarm service behind Traefik reverse proxy
I'm running a Docker Swarm cluster with services behind Traefik2 with HTTPS Base Auth enabled in Traefik itself. Now i'd like to add RabbitMQ with its management interface and make the web management ...
0
votes
0
answers
122
views
Docker swarm: communication between replicas of the same service
I have a Docker swarm of two machines, and started a service with two replicas:
$ docker service create --replicas 2 --name myservice --network ingress alpine:latest sleep 1d
Now I've got two ...
1
vote
2
answers
356
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
2
answers
1k
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
304
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
53
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
92
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
307
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
200
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
957
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
590
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
248
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
131
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
960
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
375
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 ...
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 ...
2
votes
1
answer
2k
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
7k
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
763
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
81
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
87
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
251
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
1k
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
1
answer
3k
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
1
answer
812
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
785
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 ...
3
votes
2
answers
5k
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
596
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
966
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
982
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 ...
1
vote
2
answers
5k
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! -...
0
votes
0
answers
387
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 ...
-1
votes
1
answer
300
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 ...
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 ...
1
vote
0
answers
49
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?
1
vote
1
answer
708
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:...
2
votes
1
answer
799
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 ...
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
428
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 ...
0
votes
0
answers
136
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 ...
1
vote
1
answer
326
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.
...
0
votes
0
answers
34
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 ...
0
votes
1
answer
188
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 ...
0
votes
1
answer
169
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-...
0
votes
0
answers
30
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 ...
1
vote
0
answers
136
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 ...
0
votes
1
answer
427
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 ...