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
0answers
76 views

Can't attach Docker container to overlay network

I'm trying to replicate a production environment (CentOS 7) on a macbook, the environment consist basically of several docker swarm services that interact with a couple of databases. These databases ...
0
votes
0answers
60 views

How to block any out-side(docker-host) port say 80 in ubuntu linux VM

How to block any out-side(docker-host) port say 80 in ubuntu linux VM. Hi there, I have two Ubuntu VMs on Hertzner Cloud provider in docker-swarm cluster mode running two stacks serving same content (...
0
votes
1answer
24 views

Docker swarm join as manager fails but succeeds as worker

I'm working on creating a 3 manager Docker Swarm using Docker CE 19.03 and three CentOS 7 machines. I've installed docker via yum, enabled the service and started it. I've created a firewalld 'service'...
1
vote
0answers
9 views

Debugging port forwarding in Docker

Manager I have a docker swarm setup on a mesh VPN. My manager is on 10.0.0.1. I have run: docker swarm init --advertise-addr=wg0 which then uses the VPN IP to listen on 10.0.0.1 opposed to the ...
0
votes
1answer
84 views

Deploy with docker swarm on homogeneous devices without cluster [closed]

Is it possible to use docker swarm for deployment of docker containers on homogeneous device? The answer should be yes for clusters right. But the IOT devices are not internally connected and do not ...
0
votes
0answers
22 views

What is a good way to plan for network downtime between availability zones / data centers?

We're currently running all our services in a single datacenter (DC). We've been planning to spread our services across multiple DCs to make our setup more resilient against failures in a single DC. ...
1
vote
2answers
24 views

How to scale docker swarm dynamically

We have a docker container which can service only one request from user at a time. So, we want to scale up and down whenever there is a request from user. But in the docker swarm I can see only ...
0
votes
0answers
29 views

NGINX reverse proxy on root path returns 401 and 404 errors

I'm using NGINX to load balance a docker swarm cluster on Digital Ocean. I have swarmpit installed and I want to reverse proxy to it with an ssl certificate and using a custom port so that I can ...
0
votes
0answers
33 views

nginx shared memory space on docker swarm for rate limiting

I have a docker swarm setup across multiple nodes (6 to be exact) that has 3 containers running nginx. I want to rate limit my authentication endpoint using the nginx built in limit_req_zone ...
0
votes
0answers
14 views

Time-based rotation of Docker logs

We are running a stack of Docker Swarm services and, according to our Privacy Policy, we have to keep logs only for the last 6 months, but no older. I was trying to achieve it through different ...
0
votes
0answers
12 views

Docker external network affecting local host network on container restart : ERR_NETWORK_CHANGED

I am facing a weird issue with the docker networks. I am using an external network of bridge type named extenal_network in my docker containers with auto-restart enabled. I am not able to access my ...
0
votes
1answer
10 views

Will ingress traffic to a global service always be handled locally on that node?

Assuming you run a service exposed on port 80 in global mode, will ingress traffic on port 80 for any given node / host then be handled locally by the instance running on that node? The alternative ...
0
votes
1answer
33 views

Using HAProxy in docker with host network

When running HAProxy in a docker container, we can only see (and forward) the original client's IP when running the container with the --net=host option as described here. Our question: Is this ...
0
votes
0answers
60 views

Unbalanced interrupt handling in multi-CPU leads to a crash (uhci_hcd:usb1, ens3)

I am running some experiments on a private cloud powered by OpenNebula. Not sure how relevant this is but the experiments are Hyperledger Farbirc benchmarking. It is a blockchain network that runs ...
0
votes
0answers
25 views

External Traefik services access docker swarm network

I am running a traefik service with systemd and using the file provider to load balancing to a Ceph rados gateway cluster, and a few other services. I have traefik installed on 3 servers this way with ...
0
votes
0answers
36 views

Docker Swarm overlay network: ksoftirqd eating up all the CPU

I have a docker swarm overlay network that connects 6 nodes each running 4 containers with highly frequent communication. I have been trying to identify the bottleneck with my network to realize that ...
1
vote
1answer
74 views

nginx reverse proxy with authentication header

I'm trying to configure nginx to run as a reverse proxy for two applications: a web frontend (IIS) and a .NET Core backend (Kestrel), all running in a docker swarm. I'm rewriting all calls to /api to ...
0
votes
0answers
127 views

Hiding a docker container behind OpenVPN, in docker swarm, with an overlay network

The goal: To deploy on docker swarm a set of services, one of which is only available for me when I am connected to the OpenVPN server which has also been spun up on docker swarm. Background The ...
0
votes
1answer
67 views

What are Task IDs in Docker Swarm for?

In Docker Swarm each container has both a task ID and a container ID. Given that orchestrators are aware of the containers they run and their Container IDs, why do they assign them a Task ID as well? ...
-1
votes
2answers
96 views

Is there a still a reason to use Consul with modern (“Integrated”) Docker Swarm?

I've done a little Docker Swarm in the past, and it was pretty uncomplicated - create a Swarm Manager on one node, create Swarm Workers on two more nodes, stick with a single Manager. I would like to ...
0
votes
0answers
53 views

Traefik + Consul not generaitng SSL certificates in replicated mode, using TRAEFIK DEFAULT CERT

I have a setup of 1 master and 2 worker nodes running docker swarm. I deployed Traefik + Consul using the setup below: version: '3.3' services: consul-leader: image: consul:latest command: ...
0
votes
0answers
10 views

How/Can Docker-Swarm load-balancer switch request coming from one service to another service internally between similar ES cluster servicess

I have 3 node Elasticsearch cluster running as 3 docker services (1 task/container for each service ). Docker-swarm is 2 node cluster. 1 Manager and 1 worker. My java-app connects to one of the es1 ...
0
votes
1answer
111 views

Does Elasticsearch have capability to form ES cluster with only one ES docker service running multiple replicas of it in Docker-Swarm

I wanna run only one elasticsearch service in docker-swarm having multiple replicas of this service. Does Elasticsearch have capability to form ES cluster with only one ES docker service running ...
1
vote
0answers
132 views

DBeaver/pgadmin connect db thru a jump server

I am using docker swarm to manage my stacks. And I dont want to expose my databases to the public (5432 port on the host machine should not be open), but I still want to use dbeaver or pgadmin. The ...
1
vote
1answer
24 views

Docker swarm manager and node simultaneously

Due to limitations in physical ressources, I need to know if is it possible to declare the same host as manager and node at the same time? I can't find anything in the official documentation. In ...
0
votes
0answers
32 views

Docker swarm - 2 nodes (run as managers) with fault tolerance?

Can anyone help ? I know you should have a minimum of 3 nodes for fault tolerance, I only have 2. I have set both to be managers. Is it possible to force fault tolerance with a 2 node system ? What ...
0
votes
0answers
16 views

How to manage docker volume in swarm when a service is deployed on another node?

I have a swarm cluster and some DB containers that use volumes. The stack is deployed using docker-compose files. Now, a db service is being deployed to another swarm node. How do I efficiently move ...
0
votes
0answers
14 views

New nodes in Docker swarm don't expose service ports

I have a Docker swarm with three nodes to which I added two more nodes. All nodes have the same OS (Ubuntu) and the same Docker version (19.03.6). Everything seems to be alright, all nodes are up, the ...
0
votes
0answers
30 views

HDFS on docker containers - is it possible?

we are using Hadoop cluster based on HDP version - 2.6.5 with ambari platform we want to know if we can use the following HDFS components on docker containers as: journal nodes ZK fail controller ...
0
votes
0answers
47 views

How to store Vault audit logs when running vault in a Docker container

I'm researching the various audit devices for Hashicorp Vault. My goal is to run Vault in a Docker environment (currently Docker Swarm). The File method is fairly straightforward, but I'm also ...
0
votes
0answers
40 views

post docker daemon update nginx drops existing session

I tried to look at the existing queries if someone already post this or not, Unfortunately didn't find one. Currently we are facing some issue while we roll out docker update on the environment on ...
0
votes
0answers
85 views

Docker Swarm Overlay network - encrypted containers can not communicate

I am looking for help debugging the following setup: I have 3 VPs Cloud instances from a hosting company. (I believe the VPS's are VMWare but I can't find any documentation on the host companies site....
1
vote
0answers
66 views

DR for Docker persistent storage on NFS

At the moment we have a Docker Swarm setup with DTR, UCP etc using a local NFS server for DTR and persistent storage. We would like to have a DR setup at a remote data center which has high speed ...
0
votes
2answers
283 views

What certificate does docker swarm join use?

I am trying to setup a docker swarm. I need my nodes to communicate via TLS. I have created a cert for the manager node with extendedKeyUsage = serverAuth I have configured the manager node with ...
1
vote
1answer
102 views

Docker Swarm and Netfilter

I have deployed a Docker Swarm server on my VPS, to handle an Asp.Net Core application. I want to serve this app through a Nginx web server. Let's suppose my web app is a vanilla app I created ...
0
votes
0answers
116 views

Docker Swarm's overlay network DNS consistently resolving hostnames to an IP address one number lower than a container's actual IP

I'm having a very odd reproducible issue with Docker Swarm. I'm attempting to deploy a Dgraph server cluster via Docker Swarm across four LXD containers. For context, Dgraph Zero is the control server ...
0
votes
0answers
93 views

Troubleshooting Docker Swarm cURL docker service across nodes via overlay network

I have setup a 3-node Docker Swarm. I can ping but cannot curl a docker service that ends up deployed on Host B from within a docker container on Host A. What am I missing? What else can I do to ...
0
votes
0answers
44 views

Docker Swarm DNS orphaned IP address

System information: Docker Engine Version: 17.06.2-ee-6 My team and I have been observing peculiar behaviour in our Docker cluster recently, where a REST request to a service (here: myservice) has ...
0
votes
1answer
31 views

Docker swarm - centOS - nginx

I am running docker swarm with a current setup swarm.abc.com (lets say 192.168.1.1) - master node1.abc.com - child node2.abc.com - child I have a container running in the swarm running on port ...
0
votes
0answers
18 views

Docker Swarm Route Outgoing traffic From an arbitrary container, thru a specific host(s)

Due to some of the infrastructure limitations we have, our docker swarm hosts may have a varying number of NICs. For instance, here is an infrastructure that may resemble something that we have: As ...
0
votes
0answers
47 views

Is it possible to prevent Docker from registering itself on the DNS of a network in Swarm?

I want to create a common backend overlay network for Kafka where other services can join the network to connect to the Kafka server. However, I want to avoid name clashes so I only want to be able ...
0
votes
0answers
29 views

How to prevent Swarm nodes from freezing?

I run 3 Swarm nodes, one on-premises 2-core manager, and two smaller worker ones (2-core) on AWS. Today I experienced a DNS issue, and the manager lost connection to the workers. After the manager ...
0
votes
0answers
58 views

Block public traffic to a specific container in Docker Swarm cluster

I have run a docker swarm cluster. It exposes 2 ports: 80 (it redirects to Nginx) and 3000 (it redirects to Grafana panel). I would like to make Grafana container accessible from localhost only (...
2
votes
1answer
97 views

How can you automate rolling upgrades of Docker Swarm nodes?

What's the typical process to roll out an upgrade of Docker and other OS updates to a Docker Swarm cluster? Since I want it rolled out, I was thinking of just doing a full Terraform build which will ...
0
votes
0answers
187 views

Docker swarm: One container per connection?

How would you implement a system that allocates one docker container per connection? For example, the service receives a connection on port $x. I would like to route that connection to a single ...
0
votes
1answer
119 views

How docker stack deploy works?

I am new to docker swarm and want to understand, how docker stack deploy works version: '3' services: web: image: nginx ports: - "80:80" redis: image: "redis:alpine" When I run this command, it ...
0
votes
2answers
389 views

Docker swarm, list all container status

I have couple of nodes in docker swarm but both the nodes shows only container running on them when "docker stats" command is run But i would like list container stats (cpu,memory) from all nodes ...
1
vote
0answers
76 views

Overlay network in docker swarm not working

This is my setup: https://github.com/czpo/docker-reverse-proxy So there is a simple nginx/php stack called "site1" on the worker, and when I put a reverse proxy on the worker node it will load that ...
0
votes
0answers
30 views

Deploy specific stack service from docker compose file

I have a docker-compose.yml which defines multiple services. If I run docker stack deploy -c docker-compose.yml then it creates/deploys all those services. Is it possible to create/deploy a specific ...
0
votes
1answer
121 views

Inspect docker stack via ansible

I want to use ansible to know whether a docker stack is deployed. In the shell I'd do something like: docker stack services -q my_stack_name. I could use the shell module, but then I have to manually ...