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

Error response from daemon: rpc error: code = 2 desc = The swarm does not have a leader

I have created 3 nodes swarm cluster by Virtualbox using docker-machine. The three are all running and i'm able to use 'docker-machine ssh' to connect every one.There is a problem that I restart the physical machine and the cluster seems to not…
sanner little
  • 188
  • 1
  • 1
  • 9
11
votes
3 answers

How to scale a NodeJS stateful application

I am currently working on a web-based MMORPG game and would like to setup an auto-scaling strategy based on Docker and DigitalOcean droplets. However, I am wondering how I could manage to do so: My game server would have to be splittable across…
Telokis
  • 3,399
  • 14
  • 36
11
votes
4 answers

Docker composer, constraint - did not find expected key

We using docker CE(latest) and docker composer version 3.I have a .yml for for 3 services but I want to constraint grafana to the master of the swarm. When adding the constraint I get yaml: line 32: did not find expected key Tthe script is…
11
votes
1 answer

How to bind the published port to specific eth[x] in docker swarm mode

I'm trying to deploy my container to docker swarm cluster(docker engine 1.12.1). The features of docker swarm mode really are exciting, such as clustering docker, multi-host networking. However I find something can't be archived in swarm mode so…
Kane
  • 8,035
  • 7
  • 46
  • 75
11
votes
2 answers

Docker 1.12 swarm mode and container volumes

I have several container that require state - I will only ever set the scale to 1, but I would like it so that no matter which host they start on the volume would be shared. I'm guessing I need to use a network mount to achieve this (which is fine),…
Ross Dargan
  • 5,876
  • 4
  • 40
  • 53
11
votes
4 answers

Build a multi node Kafka cluster on docker swarm

I found this docker image for Kafka https://hub.docker.com/r/spotify/kafka/ and I can easily create a docker container using command documented in the link docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`boot2docker ip` --env…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
10
votes
4 answers

Docker Swarm Overlay Network ICMP Works, But Not Anything Else

I have a small 1-manager, 3-worker cluster setup to pilot a few things. It is running swarm orchestration and is able to spin up services across the cluster from any stack yaml and serve the webapps through the ingress network. I've made no changes…
BKaun
  • 517
  • 7
  • 17
10
votes
2 answers

Traefik v2: 404 while routing HTTP traffic globally to HTTPS

I have the problem that I can route HTTPS traffic but I can not globally redirect the HTTP traffic to HTTPS. In my case I only want HTTPS traffic, so that I want to redirect all the incoming traffic. Currently I get an 404 error while I try to serve…
mbaldi
  • 133
  • 1
  • 1
  • 7
10
votes
4 answers

Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed

I have Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed when redeploying stack docker stack deploy -c docker-compose.yml --with-registry-auth monitoring
Ryabchenko Alexander
  • 10,057
  • 7
  • 56
  • 88
10
votes
1 answer

What is the extra container with "lb-" prefix in docker swarm network? How to set up docker network not to have that?

Docker network is created in a docker swarm, which contains several nodes, with this command: docker network create --attachable --driver overlay [network-name] And containers are attached to the network with "docker service create" command. There…
gdenuf
  • 840
  • 1
  • 12
  • 16
10
votes
1 answer

What is the simplest way to share a multi-container app on docker hub?

I have a fully dockerised app with multiple services: frontend, backend, user-service, multiple databases etc... I orchestrate everything using a docker-compose.yml file. I am now trying to share this app with someone who has no CS/coding knowledge…
Ludo
  • 2,307
  • 2
  • 27
  • 58
10
votes
3 answers

Docker-compose: setting hostname equal to its hostname of where the container is running

Right now, I have two-node in swarm cluster $ docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS yey1njv9uz8adf33m7oz0h80f * redis2 Ready Active …
ealeon
  • 12,074
  • 24
  • 92
  • 173
10
votes
1 answer

using MPI with docker containers

I have created a docker image based on Ubuntu 16.04 and with all the dependencies needed to run MPI. It is public on docker-hub at: https://hub.docker.com/r/orwel84/ubuntu-16-mpi/ I use this image to create an MPI container. I can also compile a…
revolutionary
  • 3,314
  • 4
  • 36
  • 53
10
votes
2 answers

Docker service in swarm fails with error ask: non-zero exit (1)

When we run command : docker service create --name [name] --with-registry-auth image-name Services fails with Error - non-zero exit (1) docker version - Docker version 1.12.2
user5702955
  • 135
  • 1
  • 3
  • 10
10
votes
3 answers

Docker Swarm, Kubernetes and Compose

I just heard of the native Kubernetes support in the future Docker version. I never used Kubernetes before, so I started reading about it. But I got a little bit confused: Kubernetes is described as orchestration tool and also as an alternative to…
Munchkin
  • 4,528
  • 7
  • 45
  • 93