Questions tagged [docker-swarm]

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

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

Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Flynn, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.

Like other Docker projects, Swarm follows the "batteries included but removable" principle. It ships with a set of simple scheduling backends out of the box, and as initial development settles, an API will be developed to enable pluggable backends. The goal is to provide a smooth out-of-the-box experience for simple use cases, and allow swapping in more powerful backends, like Mesos, for large scale production deployments.

3165 questions
7
votes
1 answer

docker stack deploy leaves old service around after update

I've been deploying stacks to swarms with the start-first option for quite a while now. So given the following api.yml file: version: '3.4' services: api: image: registry.gitlab.com/myproj/api:${VERSION} deploy: update_config: …
sas
  • 7,017
  • 4
  • 36
  • 50
7
votes
2 answers

docker-compose ignores `configs:` section

I've got a docker-compose service definition with a configs section as follows: # api.yml file version: '3.3' services: api: ... configs: - source: api_config target: /env.cfg configs: api_config: file:…
sas
  • 7,017
  • 4
  • 36
  • 50
7
votes
1 answer

Docker Swarm Redis and Sentinel with master - slave replication IP resolution client failure

I am running into an issue and I am not sure how to resolve this. My redis sentinel eco system is as follows: 3 sentinel cluster --> Managing 1 master and 2 slaves using docker-compose I have created a docker overlay network for the eco system and…
sharman
  • 515
  • 1
  • 5
  • 18
7
votes
2 answers

run docker exec from swarm manager

I have two worker nodes: worker1 and worker2 and one swarm manager. I'm running all the services in the worker nodes only. I need to run from the manager docker exec to access some of the containers created in the worker nodes but I keep getting…
tkyass
  • 2,968
  • 8
  • 38
  • 57
7
votes
1 answer

Mysql container can not mount data to a nfs folder

By swarm mode, containers may deploy in any joined nodes. I created a shared nfs folder as mysql data folder on host1. mkdir -p /nfs/data-volume In another host2, it mounts to this shared folder. And added necessary permission. I tried this nfs…
Seiya
  • 73
  • 1
  • 6
7
votes
6 answers

Docker-swarm overlay network is not working for containers in different hosts

We have a networking problem in docker-swarm. The problem is below; we have virtualized environment over wmware ( vsphere 6.02) our servers are created from vmware say server1 and server2 we have a docker compose file defining a couple of…
ygk
  • 550
  • 1
  • 7
  • 17
7
votes
1 answer

How to use Docker swarm DNS/Service names in Nginx upstream

I have a service running across 4 swarm nodes (ServiceA) and a Nginx service running across 4 nodes on the same Swarm. The Nginx service exposes/publishes ports 80 and 443. All the services are connected to the same user-defined overlay network…
Steve Fitzsimons
  • 3,754
  • 7
  • 27
  • 66
7
votes
1 answer

Is there any way to obtain detailed logging info when executing 'docker stack deploy'?

In Docker 17.03, when executing docker stack deploy -c docker-compose.yml [stack-name] the only info that is output is: Creating network _myprivatenet Creating service _mysql Creating service _app Is there a…
kvjava1
  • 433
  • 4
  • 13
7
votes
1 answer

client access to docker swarm

I have a docker swarm cluster consisting of one manager and one worker node. Then I configured (tls and DOCKER_HOST) a client from my laptop to get access to this cluster. When I run docker ps I see only containers from the worker node (and not all…
Kenenbek Arzymatov
  • 8,439
  • 19
  • 58
  • 109
7
votes
3 answers

How to setup zookeeper cluster on docker swarm

Environment : 6 server docker swarm cluster (2 master & 4 workers) Requirement : We need to setup a zookeeper cluster on existing docker swarm. Blocked on : To setup zookeeper in cluster, we need to provide all zk servers in each server config and…
Sunil Agarwal
  • 4,097
  • 5
  • 44
  • 80
7
votes
3 answers

Swarm: Get Node Ip and Container IP from service

how could i get nodes ip and container ip (running on manager(s) and workers(s) node(s) ) from a created service? I'd like to inspect this for studying round robin load balancing of docker swarm engine and develop a new load balancing.
pier92
  • 397
  • 1
  • 11
  • 26
7
votes
1 answer

swarm, kubernetes or mesos for batch processing jobs

My application needs to run a lot of containers as worker nodes (to do various batch processing jobs) and I'm not really interested in keeping up web servers or databases - just short jobs that can take anywhere between 1 second to 1 hour. My idea…
Romeo Mihalcea
  • 9,714
  • 12
  • 50
  • 102
7
votes
1 answer

How does Docker Swarm load balance?

I have a cluster of 10 Swarm nodes started via docker swarm join command If i want to scale a docker instance to 15 via docker service create --replicas 15 how does docker swarm know where to start the container? is it round-robin or does it take…
ealeon
  • 12,074
  • 24
  • 92
  • 173
7
votes
1 answer

Upgrading swarm mode cluster

Docker changes so fast so I'm trying to find out if a Docker Swarm (swarm mode) cluster can be upgraded. For instance say I am running 1.12 and I have a 3 node cluster running services. Let's also say Docker 1.13 comes out and I want to upgrade…
learner
  • 73
  • 1
  • 3
7
votes
3 answers

docker-compose swarm: force containers to run on specific hosts

Trying to run cluster application on different virtual machines with use of Swarm stand alone and docker-compose version '2'. Overlay network is set. But want to force certain containers to run on specific hosts. In documentation there is following…
user3292147
  • 369
  • 2
  • 4
  • 11