Questions tagged [docker-swarm]

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual host.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Docker Swarm GPU Resource Allocation Issue ("no suitable node" Error) - WSL2 & Docker

I'm trying to deploy a service in Docker Swarm mode that utilizes a GPU, but I'm encountering a "no suitable node (insufficient resources on 1 node)" error Included GPU resource reservation ...
sky's user avatar
  • 1
0 votes
0 answers
31 views

Docker Swarm + Traefik under DDoS attack

env: Docker Swarm traefik several services for listening 80 and 443 traffic in xxx.domain.com, yyy.domain.com and etc Hetzner hosting Domains have anti DDoS protection like Cloudflare But we have ...
mpz's user avatar
  • 1,922
1 vote
0 answers
34 views

Docker Swarm - indicate a container is busy and shouldn't be terminated?

This may be an odd question, and I suspect the answer is a resounding "no, this isn't possible", but I'd rather ask anyway. I've got a Docker Swarm setup running some Windows containers with ...
MBender's user avatar
  • 5,465
1 vote
1 answer
33 views

How to run a mpirun command across multiple docker containers on different hosts

Setup description: N hosts containing an identical mpi enabled docker (openmpi) image. Each host contains a single image Goal: Execute a python script containing a call to mpirun (via subprocess....
KingUnique's user avatar
0 votes
0 answers
52 views

no. of nodes keep fluctuating in selenium grid

I am using docker swarm based selenium grid, the same docker compose used to work on azure based VM's but on GCP is giving issue. All the nodes come up when I deploy the grid but as tests start ...
user22965033's user avatar
0 votes
0 answers
26 views

Portainer | Docker Swarm replica can not access internet

I'm using Portainer as container manager and used Docker Swarm option to add my environment. My problem is more of a Docker Swarm problem than Portainer. I have 3 nodes in my swarm and they are from ...
barbarbar338's user avatar
-1 votes
0 answers
25 views

Mysql replication in docker swarm

Im implementing Ha for a php application with mysql database with docker in swarm. I want to have replication for my database (mysql) i have 3 node that each node has 2 mysql replica. My question is ...
sina kzm's user avatar
0 votes
1 answer
25 views

Docker Stack Deploy not updating environment settings

Given the following compose file: version: '3.6' services: hello-world: image: hello-world environment: - test:test If I deploy it using docker stack deploy -c docker-compose.yml test,...
Ross Dargan's user avatar
  • 5,901
-1 votes
1 answer
76 views

Access to the nginx files from the broken Docker image [closed]

How can I extract the data from the nginx.conf and default.conf files if the image does not run. I tried with volumes but it shows that the file is empty.The image is this obur5/nginx-broken-image:...
vasile Berco's user avatar
1 vote
1 answer
92 views

How/Where to save credentials to use from Dockerfile

I have a Dockerfile with the following content FROM eclipse-temurin:17-alpine RUN apk update && apk add --no-cache curl gcompat ENV REPO_USERNAME=username ENV REPO_PASSWORD=password # Create ...
Black Bear's user avatar
0 votes
1 answer
16 views

Creating a docker swarm service with secret using docker api

I'm working on creating a Docker service using dockerode, which is a wrapper around the Docker API. I'm having trouble understanding how to use the Secrets array when creating a service. The Docker ...
Ajand Mardalizad's user avatar
0 votes
1 answer
18 views

Docker Swarm connects with worker nodes but containers in nodes can't resolve host

I have a long running docker swarm manager node and a worker node on two separate AWS EC2 instances (all of them connected with overlay network called proxy). Now, we are adding a GCP node as well ...
DaveIdito's user avatar
  • 1,546
0 votes
0 answers
14 views

using Express Gateway as load balancer for docker containers

we have a big issue now. we have implemented api gateway with express gateway and there is an nginx between client and api gateway. there are 3 containers and api gateway rotates the request to a ...
saman saeedi's user avatar
0 votes
0 answers
21 views

In Docker Swarm how does the services route when there's an update

If I do docker stack deploy I was wondering what the behaviour is as it's kind of hard to test on a single node system. Say I have it set to order: start-first and say I have 10 replicas with ...
Archimedes Trajano's user avatar
0 votes
0 answers
84 views

Use Traefik 3 to proxy MariaDB

I'm trying to deploy a MariaDB database using docker swarm, and expose it with security using traefik as reverse proxy. I already have done something similar with Postgres, but I haven't had any luck ...
leadvic's user avatar
  • 41
0 votes
0 answers
18 views

Link services in Docker Swarm

I am not able to link two services in my docker cluster. I have two services in my docker-compose file where the first depends on the seconds such a web server and a database. If I deploy the cluster ...
sam's user avatar
  • 21
1 vote
1 answer
48 views

Unable to reach network 172.16.0.0/24 from containers on an external node with an IPsec tunnel to vCloud Director

I have an issue using Docker Swarm with IPsec tunnel. I have a Swarm cluster with 7 nodes hosted on a vCloud Director instance. All these 7 VMs are on the 172.16.0.0/24 network. Additionally, I have ...
Denden's user avatar
  • 13
0 votes
1 answer
72 views

Rails 7 Action Cable with Puma, Nginx, Docker Swarm

I setup a DigitalOcean Ubuntu 22 droplet to host a docker swarm with containers for a rails app, postgress, and redis. I’m not able to get action cable to work with puma and nginx. I see errors in the ...
user3612719's user avatar
1 vote
0 answers
17 views

Invalid Host under Docker Swarm with PHPMailer

I am configuring Open Journal System, that uses PHPMailer, on docker swarm. I have two images, one running php-fpm and the other postfix. From the php-fpm I am able to access the postfix one using the ...
Alberto's user avatar
  • 516
2 votes
2 answers
47 views

The third node of the nats-streaming cluster does not rise in docker swarm

My project uses nats-streaming cluster. I want to raise it on three servers using docker swarm, but only 2 are successfully raised. (docker service ls output) A non-working node outputs the following ...
Кирилл Сыроежкин's user avatar
1 vote
1 answer
18 views

Docker swarm service mesh does not extend over AWS VPC

We had a docker swarm cluster in our on-prem datacenter and a side-by-side vpn to our vpc in aws cloud. Now we want to extend the swarm over the vpn to aws. We had spawned 3 EC2 instances, installed ...
Дмитро Іванов's user avatar
0 votes
1 answer
47 views

cannot access localhost:8000 after running docker swarm getting-started

I follow the tutorial https://docs.docker.com/get-started/swarm-deploy/ every run normally, when running docker service ls I have u9m7tz0ge3bp demo_bb-app replicated 1/1 getting-started:...
UMR's user avatar
  • 310
0 votes
0 answers
24 views

Resource (GPU) locking across docker swarm stacks

I've got multiple instances of the same stack running on a (currently single-node) swarm. They're logically totally separate and therefore should remain different stacks. The only thing they share is ...
Johannes Bauer's user avatar
1 vote
1 answer
394 views

Grafana cannot retrieve logs (and labels) from Loki

I have Docker Swarm environment with several nodes, one of them called gateway. On all nodes installed Docker Plugin grafana/loki-docker-driver:2.9.1 instead of using Promtail. I used Portainer ...
aalexren's user avatar
  • 103
0 votes
2 answers
27 views

Accessing certain container replica within Docker Swarm deployment

We have a Java application server running in a container with 2 replicas. Container network stack is Traefik. Additionally we have Apache HTTP Server with GSSAPI module for Kerberos SSO authentication....
kab00m's user avatar
  • 131
0 votes
0 answers
39 views

Docker swarm, ruby gems not install: bundle install error , not fetching

I have a problem with my redmine installation in docker swarm When I try to install any redmine plugin in a docker swarm installations: Fetching source index from https://rubygems.org/ Retrying ...
mls_dev's user avatar
  • 531
1 vote
2 answers
137 views

How many services can I run in Docker swarm?

I am running very lightweight Docker images in a Docker swarm environment. For this I forward a random port to the destination port inside the container. Here is an example output: y0xxxjj8kvi3 foo-...
Daniel Stephens's user avatar
0 votes
0 answers
33 views

Why do Docker Swarm Environments Periodically Freeze

I have an 18 node Docker Swarm setup using 5 managers. This is an AWS setup, using c6a.2xlarge EC2 families for all nodes. Attaching Docker info data below. We have approximately 300 "website ...
Cory Collier's user avatar
0 votes
0 answers
53 views

Container orchestration with primary and secondary failover

While a primary/secondary "application" (previously master/slave) can be implemented by oneself I was wondering whether this doesn’t come out of the box in a container orchestration ...
paskalOn's user avatar
0 votes
0 answers
17 views

What should be the mongodb installation and configuration recommendation in Docker swarm?

there is a production in the IoT sector that prints 5 KB of data for 15000 devices every 30 minutes. My servers are approximately 5 16 core 32 GB ram vm linux. We manage all our applications and db’s ...
yiğit yalnızça's user avatar
1 vote
2 answers
98 views

Docker Swarm - Serve different stack service with NGINX

I use Swarmpit to control Swarm nodes. There are multiple stacks on Swarm (one for each application) and another stack with NGINX. All the stacks are attached to one external docker network named &...
Legoraccio's user avatar
0 votes
0 answers
168 views

PostgreSQL Connection Reset by Peer Errors

I recently updated my postgreSQL version to 12.15-bullseye. Everything went smooth but a couple days after I started noticing these logs: 2023-09-06 07:12:02.607 PDT [68784] LOG: could not receive ...
AK13's user avatar
  • 1
0 votes
0 answers
44 views

On a single node Swarm cluster, how can I use the on-failure restart policy

I'm trying to deploy a Docker stack to a Swarm composed of a single node only. I have two requirements that seem to conflict: I want to use the on-failure restart policy as I have a 3rd party tool ...
m90's user avatar
  • 11.5k
-2 votes
1 answer
41 views

Task in Airflow with DockerSwarmOperator keeps in running state

I have a task in airflow that uses a DockerSwarmOperator to run a short-lived container. Once the container finished execution with no errors (DESIRED STATE: Shutdown) , the task in Airflow keeps in &...
Daniel Capone's user avatar
1 vote
2 answers
336 views

TLS Handshake failed with error EOF when deploying Hyperledger Fabric on multi-host

I am trying to develop a package that allow users to dynamically deploy Hyperledger Fabric peer and orderer on multi-host. The source code is uploaded here to clarify the question further. You can ...
dodo920306's user avatar
0 votes
1 answer
82 views

Connecting to a postgresql database

I'm trying to install dspace7.6 in docker swarm using traefik to manage my containers, but my problem is that when I access the url of my UI, I don't see the data appear (Communities, Collections, ...
Robert Thiare's user avatar
0 votes
2 answers
77 views

How do I fix this intermittent job completion failure in dockerized slurm?

I'm trying to build a fully dockerized deployment of slurm using docker stacks, but jobs don't complete consistently. Does anyone have any idea why this might be? Other than this problem, the system ...
MemoryWrangler's user avatar
0 votes
0 answers
70 views

How to organize a Docker Swarm project?

I am trying to organize my Docker Swarm project that is splitted in diffrent git repositories. Actually there are 4 repositories in total. Stack repository wraps front, users and products repositories ...
Nontre's user avatar
  • 1
0 votes
0 answers
51 views

Docker Service Mount Host Machine Directory Not Work

I work on a Spring Boot project that connects to remote machine and save files to the machine in a directory. Project work well when running project locally. The project code related to saving files: ...
justadeveloper's user avatar
0 votes
0 answers
171 views

Federated Learning: Flower Client is not connectiong to Server in Encrypted Overlay Network with Docker Swarm on Google Cloud VMs

I want to set up federated learning with the python package flwr (https://flower.dev/). For this purpose I use Docker Swarm on Google Cloud (3 VMs, 1 server/manager, 2 clients/workers, all based on ...
Hans H.'s user avatar
  • 53
0 votes
1 answer
56 views

Docker Swarm Service creation is stuck, How to make sure it exits instead of getting stuck

I'm using docker swarm here and used docker service create, it is stuck due to some mount error or any service pre-requisite which is not being met. But instead of forever getting stuck. I want it to ...
axel's user avatar
  • 21
0 votes
0 answers
13 views

Alertmanager API when running with Prometheus as docker services [duplicate]

I'm having Alertmanager and Prometheus running as docker services. Alertmanager is configured to send emails if there are alerts triggered. What I want to do is to be able to use Alertmanager config [...
Astin Gengo's user avatar
0 votes
1 answer
94 views

Permission denied for writing in sshfs with Docker

I am trying to mount a sshfs for a service. There is my Docker Stack config: ... myservice: ... volumes: - "sshfs_volume:/home/app/web/media:rw" ... volumes: sshfs_volume: ...
Tvorobusheck's user avatar
0 votes
0 answers
198 views

How to pull the latest image with Portainer?

I have a stack that is described by a docker-compose yaml file. I'm maintaining a single image with the tag "latest". This image is updated every day, again, with the same "latest" ...
sleekster's user avatar
0 votes
0 answers
61 views

Serve nodejs app on traefik and docker swarm

I have a docker swarm environment with traefik and applications that are running on a domain. One application is e.g. on domain www.test.de/app1 another is e.g. on www.test.de/app2. The applications ...
DS87's user avatar
  • 581
0 votes
0 answers
57 views

Driver vieux/sshfs mount folder in manager node docker swarm

I install docker swarm on only one server, that has only one manager node. I tried to create docker service use sshfs mount volume for folder in this server. (One server has storage folder for mount ...
RyanLe's user avatar
  • 39
0 votes
1 answer
93 views

Docker SDK for python in docker swarm with multiple nodes

How can I use the docker package in Python (Docker SDK for python) with multiple nodes? I am running my python script from a manager node and I am trying to get the container logs on one of the other ...
jardindeden's user avatar
0 votes
0 answers
114 views

ActiveMQ Artemis cluster doesn't work with Docker Swarm overlay network?

I have deployed an ActiveMQ Artemis HA cluster as shared storage cluster (one is master, one is slave). My cluster was working fine with standalone Docker (deploying with "docker-compose up")...
chenphopp's user avatar
0 votes
0 answers
72 views

Tasks.db in /var/lib/docker/swarm/worker is filling up ( Taking space). How to clear Tasks.db

Tasks.db file in /var/lib/docker/swarm/worker is taking more than 40gb space How do i clear the file content with out stopping the docker services This is our critical service so docker cannot be down ...
Harsha Rao's user avatar
0 votes
0 answers
227 views

How Docker Swarm works with Docker Desktop on WSL2?

I'm trying to build a system to collect data from some sensors on a bunch of Raspberry Pi 3. In order to do that, I have created a docker-compose file with a bunch of services that I plan to ...
TheNewPing's user avatar

1
2 3 4 5
64