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.

186 questions
1
vote
2 answers

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 should fall back to VARIABLE_B Docker compose is able…
RabidTunes
  • 125
  • 8
1
vote
1 answer

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 10.0.0.2. And not the real clients' ip. Question:…
membersound
  • 275
  • 1
  • 5
  • 13
1
vote
1 answer

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' services: agent: image:…
MBender
  • 381
  • 2
  • 8
  • 25
1
vote
2 answers

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 published=5033,target=80 nginx; The connection to the…
Allan K
  • 151
  • 6
1
vote
0 answers

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 stacks, all these ports are accessible and…
1
vote
0 answers

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 the ingress part is with keepalived.
Def Soudani
  • 111
  • 2
1
vote
1 answer

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 and looks no different than any other host. We…
1
vote
1 answer

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 swarm mode. All containers run together with the…
1
vote
1 answer

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 the VPN connection No leaks (i.e., DNS or other…
Matt Olan
  • 63
  • 6
1
vote
2 answers

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! -e DBNAME=testdb ibmcom/db2 It is working. If I…
uday
  • 352
  • 10
  • 30
1
vote
0 answers

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

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: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope…
tcurdt
  • 413
  • 1
  • 4
  • 10
1
vote
1 answer

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. I want to use mode host for the ports on the…
The Fool
  • 117
  • 1
  • 9
1
vote
0 answers

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 bare metal. My objective is to upgrade from version…
Bob C.
  • 75
  • 1
  • 1
  • 7
1
vote
1 answer

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 to be able to read the docker logs from all of…
d123
  • 117
  • 5