Questions tagged [docker-swarm]

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

-1
votes
0answers
13 views

How to use AD Kerberos authentication for ASP.NET Core Web API (linux) inside Docker Swarm?

I have requirement to use Kerberos authentication for ASP.NET WebAPI application deployed in Docker Swarm .NET Core linux containers. WebApi will be used by web clients with Kerberos support. ...
0
votes
0answers
11 views

Docker exec via API: no such container if not on same node?

I've got a question regarding the use of exec of API (https://docs.docker.com/engine/api/v1.39/#tag/Exec). I'm on a random node and only one, and I'm requesting list of containers through API (via /...
0
votes
0answers
15 views

Why even manager nodes are not recommender in docker swarm cluster?

Why even manager nodes are not recommender in docker swarm? I know that docker swarm use Raft consensus algorithm to manager the global cluster state.But I don't understand why even manager nodes is ...
0
votes
1answer
17 views

Is there a way to create a global service from a docker stack?

I am trying to create a swarm stack using a docker compose file. Is it possible to specify that my service is global, and should be run one instance on each node? My current Docker compose file: ...
0
votes
0answers
11 views

Difference between docker swarm node running as Leader and running as Manager

I wish to understand the difference between docker swarm node running as Leader and running as a Manager. I also, understand that there can be several docker managers but can there be multiple ...
0
votes
2answers
18 views

How services are distributed in docker swarm

Can I somehow configure how master node distributes services in docker swarm? I thought, that it should see free resources of worker nodes and distribute it to "freest" node. Currently I have ...
0
votes
2answers
32 views

Spring boot Eureka in docker swarm registering wrong internal docker ip’s

Docker nodes are registering with inter ip’s in springboot-eureka. My conf is as follows: Spring-boot eureka deployed to swarm (1 node) Created spring-boot client containers (2 nodes) and ...
0
votes
1answer
37 views

Traefik basic configuration for running in a Docker Swarm

From what I can see it goes like this: docker-traefik.yml: version: '3' services: traefik: image: traefik command: --docker # enable Docker Provider # use Docker Swarm Mode as ...
1
vote
1answer
42 views

Why can't i attach a container to a docker network?

I've created a user defined attachable overlay swarm network. I can inspect it, but when i attempt to attach a container to it, i get the following error when running on the manager node: $ docker ...
0
votes
1answer
33 views

How to remove Docker images that creates running container?

I want to delete these two images dockersamples/visualizer <none> 8dbf7c60cf88 22 months ago 148MB dockersamples/examplevotingapp_result <none> ...
0
votes
0answers
18 views

Nodes status still DOWN after servers restart

I have a swarm cluster containing 4 nodes : 1 Manager + 3 Workers When restarting one worker'server, its status becomes "DOWN" when running : docker node ls Also already deployed services shutdown ...
0
votes
0answers
19 views

Unable to connect to local Sql server from Docker swarm node

I have created an image of .Net Core Api demo named WebAPIDemo ,created a container for it. I am able to run it on my broswer on url localhost:8888/swagger. The docker is also installed on my ...
0
votes
1answer
37 views

Traefik not work (404) with containers inside a worker node [docker swarm]

my problem is the following: I created a small swarm cluster consisting of 2 simple nodes: a manager and a worker. On the manager node I installed a stack with a Traefik service and a stack with the ...
0
votes
1answer
14 views

Can I configure the docker fluentd log driver to connect directly to a container?

I have fluentd working with --log-opt fluentd-address=localhost:24224, and I have the fluentd daemon running inside a container that itself binds to the port on localhost. Is it possible to configure ...
0
votes
1answer
8 views

How to list swarm mode nodes?

There is no list option docker swarm list Usage: docker swarm COMMAND Manage Swarm Commands: ca Display and rotate the root CA init Initialize a swarm join Join a ...
1
vote
0answers
30 views

Send SQL data to new created stack

I have a problem with my docker microservice architecture and different approaches to solve this problems. I hope you can help me with your input. The question: what is the best way to extract the ...
-1
votes
0answers
20 views

Docker swarm: How can I configure containers to read different host directories?

I'm trying to create a service in docker swarm mode. The service shall run specified number of containers (all of them are windows containers). When the container runs, it shall run a script (batch or ...
1
vote
2answers
20 views

Docker: remove a setting when using multiple YAML files

Using Docker Swarm, I keep all my "overrides" in a single yml file like so: docker stack -c base.yml -c overrides.yml deploy myStack If my base.yml file defines these deploy limits for serviceA: ...
0
votes
1answer
17 views

How are the resources distributed for several replicas for docker?

I think I am just missing minor detail but it seems a documentation is little unclear to me. So the documentation states that, If the service is replicated (which is the default), specify the ...
0
votes
1answer
42 views

Netflix Eureka Server and Client instance registration issue with Docker swarm

We are trying to deploy Netflix Eureka Server on Docker container which is a Spring Boot application. We are deploying it as a docker service with Docker swarm for container orchestration. Everything ...
0
votes
0answers
30 views

Access in mounted folder in Docker

Unable to write/modify/create in the mounted folder via docker container docker run -it --rm -v ${pwd}:/files ubuntu /bin/bash when the docker is running in interactive mode Change directory to ...
0
votes
1answer
18 views

What's the difference between docker restart_policy on-failure vs any

In the docker swarm v3 docs, there are 3 different restart policy conditions that can be used. It's obvious what the none condition does, but I was wondering what the difference between on-failure and ...
0
votes
1answer
24 views

Legacy Windows application in VC++, Docker Image is built. Problem while deploying the application in Docker Swarm with Docker Service Create command

I am using Docker on Windows 10 version 1903. I have a Legacy Windows application in VC++. I have built Docker image of the application and pushed to dockerhub registry. I have created Docker Swarm ...
0
votes
0answers
24 views

How to configure flink cluster memory managment

I have a Flink cluster, and use it to run batch jobs. The problem is after of each the job, the taskmanager's memory used still busy. The cluster is runnning in docker swarm, and have two machines ...
0
votes
2answers
32 views

docker service performance vs individual container?

I am running a server with docker-swarm. But then, these days i questioned about docker service performance. I don't even think that having more than 2 instances and scaling up replicas doesn't help ...
1
vote
1answer
28 views

traefik : get as many frontends as replicas for a service (expect to have only one)

i try to set two docker-compose stack for a swarm cluster : one for traefik, the other for httpd. it works fine except that : I got one backend, named http, with my 4 replicas. but i get 4 frontends, ...
0
votes
1answer
22 views

Docker placement preference vs Docker placement constraints

I am learning Docker. As part of my learning there is one topic I haven't understood. The usage of the Docker placement preferences when compared with constraints in Docker. I have been keep ...
1
vote
2answers
22 views

Connect to a service on a different stack from docker-compose

I'm trying to connect a service one in stack abc - abc_one to service two in stack zyx - zyx_two . These services share the network az-network . I've read here that it's possible manually , but I ...
0
votes
0answers
20 views

Docker service failed to start but won't restart

I have a service that fails to boot with more and more replicas being brought up . The issue is that the failed tasks never try to restart , but some subsequent replicas can start without issues . ...
0
votes
0answers
27 views

Is there a way to stop docker swarm leave --force from removing the redirection of port of the current containers running

I have 2 containers running using the ports 5001 and 5000 of my server. This server can be part of a docker swarm. When I leave the docker swarm using Docker swarm leave --force the redirection of my ...
0
votes
0answers
13 views

No UDP connection to swarm service

I`m try to develop a microsservice with docker swarm. I have a UDP server listen on port 27901. I have two Cases: If I run the image locally and publish the ports I can send data from the localhost ...
0
votes
1answer
13 views

Docker Swarm: traffic in assigned state

When I scale a service up from 1 node (Node A) to 2 nodes (Node A and Node B), I see traffic immediately being routed to both nodes (including the new Node B even though it isn't ready). As a result, ...
0
votes
0answers
14 views

Docker resolver connect failed: dial udp connect network is unreachable

How can I investigate the root cause of a network is unreachable in Docker? I'm using Docker in swarm mode with docker-compose. My logs look like this they are full with this. Jun 05 12:23:22 ...
0
votes
0answers
41 views

Make external server (e.g., DB) accessible only from certain Docker Swarm services

I have multiple services running in Docker Swarm mode. I also have database running outside of the Swarm, and I would like to allow access to DB only from certain services (preferably at network level,...
0
votes
1answer
15 views

Docker Service Cannot Identify the Mounted Azure File Share in Windows Server 2016

I tried bind mounting a "Azure-Files" file share for docker swarm service in Windows server 2016. First I mounted the file-share to H:\ driver and mounting was successful. I could created files and ...
1
vote
1answer
26 views

Two docker services depends_on the same service

I am having two docker-compose files /cfacing/docker-compose.yml app-customer-facing: build: . depends_on: - mysql-db mysql-db: container_name: staging-mysql-db image: ...
0
votes
0answers
11 views

Use config file from manager host in secondary node

I have one service in docker-composer and a config file in /opt/test/test.config in docker manager node And I want to deploy a container on other node ( - node.hostname == other_node) but I don't ...
0
votes
1answer
23 views

Is it possible to deploy a service selectively to node?

I am deploying a service with docker-swarm mode. So I have a manager and 4 nodes which means I have 5 instances total. but I want to split 2 and 2 worker nodes and deploy two different service to ...
0
votes
1answer
33 views

Docker in production with a CI tool

what's the best way to run a dockerized application in production while using a CI tool? I've been using docker-compose in development but now I need a workflow for production, include updating my ...
0
votes
0answers
34 views

Prometheus scraping target : connection refused

I have a swarm running on an overlay network and here is what I am trying to do: Container A2 knows A1 exists when A1 makes an http request. A2 knows its IP through RequestAddr of http.Request. Then ...
1
vote
0answers
32 views

Docker Swarm: docker-machine or 6 physical VMs or nodes? [closed]

I am completely new to docker swarms. The book I am using to learn seems to indicate having six separate physical VMs or nodes before starting. However, this tutorial `https://rominirani.com/docker-...
0
votes
1answer
43 views

Docker compose is not finding network from swarm host

I have one server where I create an overlay network with the following command: docker network create --driver=overlay --attachable caja_gestiones In server two I want to use my docker compose to ...
0
votes
0answers
66 views

How to fix Docker error “hnsCall failed in Win32: An adapter was not found” when deploying service?

I'm attempting to run a four-node swarm from my host machine, with my machine being the manager, and three Hyper-V VMs as worker nodes. I'm attempting to run a static web page as a service across all ...
3
votes
0answers
69 views

Docker service restart policy - stop old service when new service is really ready

I have tomcat running as docker service in a swarm. When the service starts it loads lots of data into memory, which can take depending on the amount of data between 10 and 30 minutes. My problem is ...
0
votes
1answer
24 views

Use an overlay network for standalone containers is throwing context deadline exceeded

I have 2 servers where I tryed to create 1 container in each one and tryed to connect them via an overlay network, the servers specs are the folowing ones: Server 1 Centos 7 docker 17.06.1-ce ...
0
votes
0answers
21 views

Socket emit fails to reach UI

We have a Node program which emit and listen sockets from UI (Angular 6). When deployed on Docker with no replicas it works fine. The moment we create replicas using Portainer the whole socket system ...
0
votes
0answers
15 views

how to replicate docker volume host machine to another host machine volume--volume high availability host to host

I tried Gluster service in host(cluster machine 1 and machine 2) volume but not supported docker PostgreSQL container data i want to replicate docker volume machine 1 to machine 2 for fail-over ...
0
votes
1answer
66 views

How can I run multiple instances of a Docker image?

I want to to multiple instances/replicas of the same image. Consider an image workerA which has been build. docker build --tag=workerA . I usually run it with docker run --net=host -p 18080:...
-1
votes
0answers
24 views

How assign ip port to each container in docker swarm to access from outer network?

docker swarm network assign IP port to each container access able from outer network I have two host docker swarm machines(master, worker). Each has multiple Docker containers. What I want is, to ...
2
votes
1answer
36 views

How to parse attributes which contains dots with --format for docker events output?

I am trying to parse docker events output and format it using the --format argument. It works for basic attributes, however I can't manage to use attributes containing dots, like those from Docker ...