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
13 views

Replicate Percona across multiple docker swarms

We have 2 docker swarms in 2 different geographical locations. We opted for 2 separate docker swarms to avoid latency issues by one swarm forwarding to containers in another datacenter. Let's call it ...
0
votes
0answers
13 views

IPs stuck in docker swarm nodes using docker network

I have some issues with a docker network in a docker swarm platform. Right now we are using a docker network to let some APIs do request to each other. The issue we had here is that when resolving the ...
1
vote
0answers
15 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
1answer
45 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:...
0
votes
0answers
18 views

Why do container replicas fail?

I have a swarm docker environment with two replicas of each service. However, when starting the replicas they fail and the error "task: non-zero exit (255)" is displayed. The error happens ...
1
vote
1answer
71 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
1answer
100 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
1answer
84 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
0answers
38 views

Load Balacing of a nginx-rtmp server based on livestream processing and HLS distribution

I setup a nginx server with rtmp module to transcode multiple rtmp streams to HLS and serve the files for a live streaming application. Because we have many streams to process and files to serve, only ...
0
votes
0answers
16 views

How to use existing containers after restart of docker swarm?

I have few services created in docker swarm on an ubuntu server. Say cassandra db. Once I restart the ubuntu server, the swarm environment is creating a new container and adding to the service, ...
0
votes
0answers
127 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
0answers
40 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 ...
0
votes
0answers
25 views

Docker Local Communication Between Services

I have 2 services inside my docker cluster. frontend runs on port 8090, and backend runs on port 8000. How can I make frontend call backend via local DNS like fetch('https://backend.local/')? Because ...
0
votes
0answers
65 views

Running multiple instances of Traefik with LetsEncrypt enabled and load balancing between them

As you may know, unfortunately the new version of Traefik does not support HA for lets encrypt certificate management, so I'm looking for some way to achieve this. One way that I'm thinking about, is ...
0
votes
0answers
72 views

All published services within a docker swarm are unreachable while containers deployed normally work fine

I've run into an issue that seems similar too this one; https://forums.docker.com/t/cant-access-service-in-swarm/63876. My setup is a little bit different though and I haven't found a solution to my ...
1
vote
0answers
46 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
0answers
9 views

How do you set up a custom “log table” for CloudWatch so that you can see the output of tabular data?

I'd like to create a widget on the AWS dashboard which contains the output of docker service ls and ideally a way of drilling down so I can see the docker service ps of a specific service. I see there'...
0
votes
0answers
30 views

Is there any way to create the deleted network in Docker swarm with old Network ID?

We are running Docker swarm with 1 manager and 6 worker nodes . Somehow the containers on all the nodes were stopped and swarm network got deleted. Basically the containers are now residing with the ...
0
votes
0answers
22 views

After rebooting docker node, it will ask to join or init swarm

I have once server with docker as follows. docker-ce-19.03.13-3.el7.x86_64 docker-ce-cli-19.03.13-3.el7.x86_64 containerd.io-1.3.7-3.1.el7.x86_64 CentOS 7.8 minimal I run docker swarm init command ...
0
votes
0answers
20 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
0answers
163 views

How to access Fauxton (Couchdb) 5984 in a Docker Container within a Azure Ubuntu Linux VM?

I am trying to access Fauxton exhausted all my options to access Fauxton, here are the options I tried: I am using Portainer to host port 3000 (webapp) and port 3984 (couchdb) using YML file. I exec’d ...
0
votes
1answer
69 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
0answers
20 views

microservices with docker swarm

I have a microservices project that consists of about 10 docker-compose files (stack) and each compose file has a number of containers. These containers need to be in connect with each other, I also ...
0
votes
1answer
70 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
0answers
20 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
0answers
33 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
0answers
164 views

Changing docker swarm network

I'm a newbie in Docker and Swarm and I wanted to change my docker_gwbridge ip range since it collisions with another program. What I've done is to take note of network details, delete it and create it ...
0
votes
0answers
36 views

docker containers lose access to external services

I have a few docker swarm clusters set up, and I am seeing an issue occur occasionally with completely different setups. For instance, on one of the clusters, I have a stack with a few services, one ...
0
votes
1answer
24 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 ...
0
votes
1answer
46 views

When deploying a swarm to kubernetes are swarm labels secrets, config still available?

When deploying a swarm to kubernetes are swarm labels secrets, config still available and accessible through /var/run/docker.sock? I am asking since I have a custom Spring Cloud Gateway ...
0
votes
1answer
161 views

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 ...
0
votes
0answers
610 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
2answers
112 views

cAdvisor - sync between nodes

I have a docker swarm running our business stack defined in a docker-compose.yml on two servers (nodes). The docker-compose has defined cAdvisor starting on each of the two nodes like that: cadvisor:...
0
votes
0answers
104 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
2answers
445 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
134 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
110 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
24 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
3answers
659 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
752 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
68 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 ...
1
vote
0answers
294 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 ...
1
vote
0answers
117 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
12 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
146 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
111 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
866 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
1k 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
306 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
216 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 ...