Questions tagged [docker-swarm-mode]

Swarm mode refers to cluster management and orchestration features embedded in Docker Engine. When you initialize a new swarm (cluster) or join nodes to a swarm, the Docker Engine runs in swarm mode.

285 questions
1
vote
1 answer

Docker Swarm - Using mongo service only in local enviroment

So i learned that you can use the same docker-compose file for both local development with docker-machine and for production environment with docker swarm, which is great think, you can also share the same docker-compose file and add specific…
1
vote
0 answers

Communicating between swarm container and host machine

This is a total beginner question with regards to Docker. I have a basic swarm running on a single host as a testing environment. There are 11 different containers running, all communicating through the host (the literal machine I am now typing…
A.Smith
  • 427
  • 5
  • 14
1
vote
0 answers

Traefik on Swarm Mode in the same host

I'm using Traefik as my reverse proxy and it's working perfectly, but I have some concerns about traefik on Swarm mode, because the reverse proxy is in the same host of swarm manager (according to the documentation…
1
vote
2 answers

Running traekif on swarm mode with a multiple ports backend

I’m having some issues using Traefik in a Swarm. With the following configuration I’m expecting traffic on port 80 to reach the traefik service and then be dispatched it a dedicated port on the proxy service but it seems the traffic does not go…
Luc
  • 16,604
  • 34
  • 121
  • 183
1
vote
0 answers

Can containers in Swarm Mode be automaticaly raised when the Load is high?

So we are getting started with Docker Containers and Swarm Mode on Windows. Currently, we have installed Docker for Windows, enabled the Swarm mode in Single-Node Mode, Scaled sevices etc. Now we are looking, if there is a way to automaticaly create…
1
vote
0 answers

Docker swarm scaling down task with session: Stop maintaining number of task per service

I have running n tasks in service A. The containers are created by docker service scale A=n. The service maintains a session with a user so I cannot use docker swarm scale A=n-1 How do I force docker to stop maintaining the number n of containers…
Oplatek
  • 350
  • 2
  • 13
1
vote
1 answer

Cluster Docker Swarm Hosts

This is probably a simple question but I am wondering how others do this. I have a Docker Swarm Mode cluster with 3 managers. Lets say they have the IP's 192.168.1.10 192.168.1.20 192.168.1.30 I can access my web container through any of the…
Matteo
  • 232
  • 3
  • 17
1
vote
0 answers

MongoDB connection reset inside Docker swarm mode

I have a MongoDB database on my server, which runs inside a docker container. I used to start the container using docker-compose. Recently I updated my docker to 17.03.1-ce and configured swarm mode on it. Then I ran my mongodb container and tried…
Elessar.perm
  • 751
  • 1
  • 9
  • 18
1
vote
2 answers

Docker swarm mode: scale down a node and remove services

I have set of tasks for given service t1, t2, ..., tk across nodes N1, N2, ...Nw. Due to lower usage, I do not need as many tasks as k. I need only l tasks (l < k). In fact, I do not need w nodes so I want to start removing machines and pay less.…
Oplatek
  • 350
  • 2
  • 13
1
vote
2 answers

Linking Multiple Docker Swarms

I would like to know if it is possible to link multiple swarm managers together to let them cooperate. For example to have one manager forward requests to another manager if it lacks available worker nodes to fullfill the task.
Lifesaver
  • 11
  • 3
1
vote
1 answer

How to fetch Ips of a service in docker swarm cluster ?

I am running a docker swarm mode cluster with 2 nodes, and deploy 5 services : [ mysql , mongo , app ] and wish to filldb with an ansible script from my manager node. But I can not get the Ip from nodes to access db services in container ? e.g: …
1
vote
1 answer

How to make odoo read admin_passwd from file?

I would like to to make Odoo read the admin_passwd form a file existing on the file system. My use case is this: I am running an odoo:10.0 container instance on a Docker swarm-mode cluster and would like to share the necessary credentials using…
Ayman Nedjmeddine
  • 11,521
  • 1
  • 20
  • 31
1
vote
0 answers

How to interact with docker swarm to change the strategy in scheduler

When docker swarm was released in both, standalone and swarm mode, one of the main features was the possibility to change scheduler between binpack and spread. If I run docker swarm in docker-machine, I can choose the strategy by passing the…
1
vote
1 answer

ERROR: Error response from daemon: datastore for scope "global" is not initialized

I create sucsessfully a swarm, with two nodes. However when I use docker-compose build && docker-compose up in order to start my project it crashes erroring out this: ERROR: Error response from daemon: datastore for scope "global" is not…
Matheus Gontijo
  • 1,178
  • 1
  • 12
  • 29
1
vote
1 answer

Docker Service Update Error: EOF

We have a GO application that listens for code repo changes and Redis messages in order to apply CD in a Docker Swarm environment. That application was recently updated to use the github.com/docker/docker v1.13.1 client code. It worked on my mac,…
ingshtrom
  • 66
  • 1
  • 1
  • 9