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

Redis sentinel failover configuration in docker swarm

Description I'm trying to create a Redis cluster in a docker swarm. I'm using the bitnami-redis-docker image for creating my containers. Going through the bitnami documentation they always suggest to use 1 master node as opposed to reading the…
Soham Dasgupta
  • 5,061
  • 24
  • 79
  • 125
9
votes
1 answer

How to run docker images in google-colaboratory?

How to run docker images in google-colaboratory ? I tried to install docker service in google-colaboratory. However, I got the error message about " Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?",…
CodeOverflow
  • 121
  • 1
  • 2
  • 5
9
votes
3 answers

How to stop/start docker containers in swarm mode without removing?

I am new in docker swarm mode. As you know it possible to start/stop docker container but i see no possibility to do this in swarm. For example, I've deployed swarm and created new tasks with replica(2/2): docker service ls ID NAME…
Sergey Gorshkov
  • 109
  • 1
  • 1
  • 3
9
votes
1 answer

How to publish a range of ports with 'mode=host' with a Docker Compose file?

In a Docker Compose file, I can easily publish a range of ports using the short-form syntax: ports: - "3000-3010:3000-3010/udp" But in my case, I need those ports as "mode=host" to bypass the swarm overlay network. The short-form syntax can't…
William H.
  • 91
  • 1
  • 2
9
votes
4 answers

Swarm node Status down, but node should be Ready

I am trying to run a service on a swarm composed of three Raspberry PIs. I have one manager and two worker nodes. The problem is that sometimes the status of the worker nodes is "Down" even if the nodes are correctly switched on and connected to…
Giada Confortola
  • 171
  • 1
  • 2
  • 10
9
votes
1 answer

Volume is not shared between nodes of Docker Swarm

I am having problem sharing a folder between Docker containers running on different nodes of Docker Swarm. My swarm consist of one manager and two workers. I am using this compose file to deploy applications: version: '3' services: redis: …
Marek J
  • 1,364
  • 8
  • 18
  • 33
9
votes
3 answers

How to restart multiple containers in a docker swarm

I currently have 8 containers across 4 different host machines in my docker setup. ubuntu@ip-192-168-1-8:~$ docker service ls ID NAME MODE REPLICAS IMAGE yyyytxxxxx8 mycontainers global 8/8 …
crusadecoder
  • 651
  • 1
  • 11
  • 26
9
votes
3 answers

Publishing docker swarm mode port only to localhost

I've created docker swarm with a website inside swarm, publishing port 8080 outside. I want to consume that port using Nginx running outside swarm on port 80, which will perform server name resolution and host static files. Problem is, swarm…
Valar
  • 1,833
  • 1
  • 16
  • 18
9
votes
1 answer

docker service create doesn't find image

When I run docker service create --mode global foo myrepo/foo-img:0.1, it works in that it starts the service, but if foo-img:0.1 does not exist on a node in the swarm, that node emits the following error: \_ foo myrepo/foo:0.1 …
ajl
  • 821
  • 9
  • 16
9
votes
2 answers

Docker swam mode - What's the difference between --advertise-addr and --listen-addr?

I am new to cluster. I can not see the difference between these two options? I think the advertise addr is used by other nodes to communicate with each other and listen addr is used by hosts to join in cluster. So I think these two addr will always…
YON
  • 1,607
  • 3
  • 18
  • 33
9
votes
3 answers

Docker-Compose with Docker 1.12 "Swarm Mode"

Does anyone know how (if possible) to run docker-compose commands against a swarm using the new docker 1.12 'swarm mode' swarm? I know with the previous 'Docker Swarm' you could run docker-compose commands directly against the swarm by updating the…
Fabian
  • 3,310
  • 3
  • 26
  • 35
9
votes
1 answer

Is swarm required for using multi-host networking feature using overlay in docker

I have followed through the example at getting started overlay and i have a simple query. Is it possible to use multi-host networking feature using overlay without creating a swarm cluster? I don't want to use third party plugins like weave etc. I…
Ankit Kumar
  • 1,433
  • 1
  • 16
  • 24
9
votes
2 answers

Docker Swarm HAProxy Not Load Balancing w/ Overlay Networking

I have spent the past few day working on creating a docker swarm on Digtital Ocean. Note: I don't want to use -link to communicate with the other apps/containers becasue they are technically considered deprecated and don't work well with docker…
Zach Russell
  • 1,060
  • 2
  • 13
  • 27
8
votes
4 answers

Cannot ping from one Docker container to another

We've been experiencing a long-standing networking issue. In short, one container cannot ping (or ssh) another. Does anybody have an extra moment to think along with me? Our setup: Docker CE 18.06.03 (while trying to fix the issue, we've upgraded…
Brian Dant
  • 4,029
  • 6
  • 33
  • 47
8
votes
2 answers

Can docker image choose the OS?

Can a Docker image specify which operating system it can use? Say one Image with Windows and another with RHEL? In this case how Docker will maintain two different operating systems?
Shakti Kumar
  • 137
  • 1
  • 7