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
3
votes
1 answer

Howto use a docker/swarm secret value as an environment variable in "docker service create"?

I need to write scripts that create services on docker swarm clusters. An example script would be simiar to this: docker service create \ --name postgres \ --mode global \ --constraint "node.labels.postgres==master" \ --network…
nagylzs
  • 759
  • 3
  • 12
  • 23
3
votes
1 answer

Docker container unable to connect to MongoDB Replica set

I'm using Docker Swarm to create a cluster of web applications and databases. I've four containers running, three of them are a single mongodb replica set and the last is a asp.net core application which connects to the replica set. All the four…
Jamie
  • 131
  • 1
  • 4
3
votes
1 answer

Docker Swarm free to use? can be used in production for free?

I am a beginner so asking this silly question. Is docker swarm free to use for building cluster of docker containers? i heard it is $15/hr ? We can use swarm in production without paying anything? any limitations on it? Also can i run specific…
Farhan
  • 4,269
  • 11
  • 49
  • 80
3
votes
2 answers

Remove docker service and wait for containers to stop

Let's say I have the Docker Swarm services myservice1 and myservice2. How can I remove these services and wait for the associated containers to stop?
redgeoff
  • 201
  • 1
  • 6
3
votes
1 answer

Service discovery for outside of docker swarm

The embedded DNS server inside of Docker SWARM works well for communication within SWARM. But it seems it is impossible for clients outside of SWARM to discover the deployed services within SWARM unless manually notifying the outside world. Is it…
robert
  • 133
  • 4
3
votes
0 answers

Where does nginx Docker container cache proxy_pass DNS records?

I'm running Nginx as a reverse proxy as a container in my Docker Swarm. I know at startup it caches all the aliases for my proxy_pass locations. When running a service in Docker Swarm, the service is assigned a VIP and the swarm will direct…
Brett Mathe
  • 181
  • 5
3
votes
0 answers

Docker Swarm - database connection reset by peer

I am running a Spring Boot application with Docker Swarm and I use Postgres for database. When I run both of them as Docker service, database connection fails consistently and randomly (as you can see on the timestamp) as the log…
Elifcan Mehekli
  • 183
  • 1
  • 6
3
votes
1 answer

nginx reverse proxy for Docker 1.13 "Swarm Mode" cluster

I have an existing docker swarm cluster running on two nodes and I want to add nginx for reverse proxying. I am asking this question because I am facing couple of problems that I don't know how to solve. My first question is regarding running nginx…
Gasim
  • 977
  • 4
  • 14
  • 23
3
votes
2 answers

Docker-Swarm with RabbitMQ Autocluster

We are facing the following problem: How to run RabbitMQ in a Docker-Swarm with persistent Data. Currently we have the following setup in place: Docker-Swarm 3 Nodes GlusterFS as replicated Filesystem between all nodes RabbitMQ with Consul Image:…
opHASnoNAME
  • 645
  • 2
  • 7
  • 18
3
votes
0 answers

Running multiple web applications in docker swarm on vmware host

I'm trying to understand how to run multiple web applications on a Docker swarm that is running on VMWare hosts. And how to have external DNS resolve to the ip address of the container that is randomly allocated to run a single docker-compose…
EthanLWillis
  • 191
  • 2
3
votes
2 answers

Docker Swarm. Containers in one overlay network but on different nodes can't reach each other via tcp

I have a docker swarm cluster with 12 nodes. Containers deployed on single node can reach each other fine via overlay network, but when they are deployed on different nodes, there are connectivity issue: hostnames are resolved and I can ping one…
hattivatt
  • 71
  • 1
  • 4
3
votes
3 answers

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 setting number of containers for a service as static by…
Uday Kiran Reddy
  • 119
  • 1
  • 4
  • 14
3
votes
2 answers

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 learn more about Swarm, so I am following along…
halfer
  • 161
  • 1
  • 5
  • 25
2
votes
1 answer

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 contain the latest security patches and upgrades.…
Archimedes Trajano
  • 505
  • 2
  • 8
  • 20
2
votes
0 answers

Not able to reach container running in a localhost docker swarm cluster

If that's interesting: OS: WIN10 (cygwin), code written in Java. I am using hyperv VMs as stated in this guide: this I'd expect to reach the service in front of the container, which is running on port 80, using myvm1IP:80 (browser ir curl). Somehow…
elp
  • 167
  • 1
  • 1
  • 11
1
2
3
12 13