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
24
votes
2 answers

What's the difference between overlay network and bridge network in docker?

Since the overlay network could make multiple isolated docker deamon host commuciate with each other, why we need bridge network in docker swarm? Thanks!
leo
  • 1,045
  • 3
  • 15
  • 27
23
votes
4 answers

How to fix this issue "no suitable node (scheduling constraints not satisfied on 1 node)" in docker swarm while deploying registry?

I have a docker swarm in a virtual machine with 2 core 4GB ram Centos. In the swarm when I deploy docker private registry (registry 2.6.4) it shows service status as pending forever. I used docker service ps <> And when i inspect…
Arul Ranjith
  • 465
  • 1
  • 5
  • 17
23
votes
2 answers

How can I remove shutdown Docker Service tasks after a rolling update?

I'm using Docker Swarm to test services on AWS. I recently applied an update to the service like this: docker service update --image TestImage:v2 --update-parallelism 2 \ --update-delay 10s TestService2 The update worked as intended, and the…
Haris Khan
  • 442
  • 1
  • 5
  • 10
23
votes
3 answers

docker swarm mode multiple services same port

Suppose you have two services on your topology API Web Interface Both suppose to be running on port 80. On docker swarm when you create a service if you wanna to access it outside the cluster you need to expose and map the port from the service to…
bitgandtter
  • 2,179
  • 6
  • 31
  • 60
22
votes
1 answer

Getting invalid mount config for type "bind": bind source path does not exist in docker

I am trying to deploy following docker-compose into docker swarm cluster. version: '3.2' services: jenkins: image: jenkins/jenkins:lts ports: - 8080:8080 volumes: - ./data_jenkins:/var/jenkins_home deploy: mode:…
Tara Prasad Gurung
  • 3,422
  • 6
  • 38
  • 76
22
votes
2 answers

How does Docker Swarm handle database (PostgreSQL) replication?

I'm learning Docker Swarm mode and I managed to create a Swarm locally with a web application and a PostgreSQL database. I can scale them and I see Swarm creating replicas. I think I understand how Docker Swarm can load balance regular web servers,…
pfernandom
  • 929
  • 10
  • 22
21
votes
3 answers

How to share volumes across multiple hosts in docker engine swarm mode?

Can we share a common/single named volume across multiple hosts in docker engine swarm mode, what's the easiest way to do it ?
vivekyad4v
  • 13,321
  • 4
  • 55
  • 63
21
votes
2 answers

Docker Data Volume Container - Can I share across swarm

I know how to create and mount a data volume container to multiple other containers using --volumes-from, but I do have a few questions regarding it's usage and limitations: Situation: I am looking to use a data volume container to store user…
deankarn
  • 462
  • 2
  • 6
  • 17
20
votes
1 answer

Docker service exposed publicly though made to expose ports to localhost only

I have created one service and exposed it to run only on localhost in one of my docker swarm node but I can access the service publicly too easily. I have deleted and redeployed the docker stack but still same issue. Here is my docker-compose.yml I…
Tara Prasad Gurung
  • 3,422
  • 6
  • 38
  • 76
20
votes
4 answers

docker swarm - how to balance already running containers in a swarm cluster?

I have docker swarm cluster with 2 nodes on AWS. I stopped the both instances and initially started swarm manager and then worker. Before stopped the instances i had a service running with 4 replicas distributed among manager and worker. When i…
20
votes
3 answers

How to delete volumes in swarm cluster?

I have a swarm cluster with one manager and another normal node , when I create a swarm service I am creating with mount type ,mount source and mount target . It creates the volume with the same name in both manger and node and starts the container…
Vishnu Ranganathan
  • 1,277
  • 21
  • 45
19
votes
1 answer

Error on context deadline with docker, what's the meaning?

What is the meaning and the cause of error "Context deadline exceeded or context deadline unknown" when using docker, with docker stack deploy? I see many posts with this error in differents environment and contexts. But i m not able to understand…
mik3fly-4steri5k
  • 712
  • 3
  • 15
  • 32
19
votes
1 answer

How to simply scale a docker-compose service and pass the index and count to each?

I'm looking for a way to scale up a docker-compose service & saw the --scale option but could not find any method to get the index & count within each container. Here's a simplified compose file: version: '2.1' services: my_thing: restart:…
user3818491
  • 498
  • 1
  • 6
  • 16
19
votes
2 answers

How to dynamically change the docker-compose image field

I have a docker-compose.yml something like bellow: networks: smstake: ipam: config: - subnet: 10.0.10.0/24 services: app: image: smstake:latest ports: - 8000:80 networks: …
19
votes
3 answers

How to update docker stack without restarting all services

I have a swarm cluster wherein different technology dockers are deployed. (Zookeeper, Kafka, Elastic, Storm and custom web application) Web application goes under tremendous changes and have to update the stack everytime web docker changes. Once in…
Sunil Agarwal
  • 4,097
  • 5
  • 44
  • 80