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
33
votes
3 answers

local development of microservices, methods and tools to work efficiently

I work with teams members to develop a microservices architecture but I have a problem with the way to work. Indeed, I have too many microservices and when I run them during my development, it consumes too memory even with a good workstation. So I…
31
votes
1 answer

Deploying Spark and HDFS on Docker Swarm doesn't enable data locality

I am trying to set up a Spark + HDFS deployment on a small cluster using Docker Swarm as a stack deployment. I have it generally working, but I ran into an issue that is preventing Spark from taking advantage of data locality. In an attempt to…
kamprath
  • 2,220
  • 1
  • 23
  • 28
30
votes
3 answers

How to list docker swarm nodes with labels

How can I easy print all available docker swarm nodes with their labels? Added labels to nodes like $ docker node update --label-add type=one my_node_name And default listing nodes with docker node ls not showing filters. Additionally I can…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
30
votes
3 answers

Implement on-demand docker container start-up

Situation: lots of heavy docker conainers that get hit periodically for a while, then stay unused for a longer period. Wish: start the containers on demand (like systemd starts things through socket activation) and stop them after idling for given…
xificurC
  • 1,168
  • 1
  • 9
  • 17
29
votes
2 answers

Docker Swarm Windows Worker with Traefik returns Gateway Timeout

The objective is to get a mixed OS Docker swarm running using Linux servers and Windows 10 Machines running Docker For Windows Currently Windows workers are theoretically supported on mixed os swarms provided the --endpoint-mode flag is set to…
Matt Hawes
  • 291
  • 2
  • 7
29
votes
1 answer

What is overlay network and how does DNS resolution work?

I cannot connect to external mongodb server from my docker swarm cluster. As I understand this is because of cluster uses overlay network driver. Am I right? If not, how does docker overlay driver works and how can I connect to external mongodb…
Dmytro Nalyvaiko
  • 1,664
  • 4
  • 16
  • 27
28
votes
2 answers

Docker: Difference between `docker run` and `docker service`

I am very new to docker , just started venturing into this. I read online about this. I came to know of the following commands of docker which is: docker run and docker service. As I understood , with docker run we are spinning a new container.…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
27
votes
5 answers

In Docker, "Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses on different interfaces"

My question is similar to docker swarm init could not choose an IP address error, but I found the accepted answer somewhat vague so I'll ask again. Upon trying docker swarm init I'm geting an error message Error response from daemon: could not…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
26
votes
3 answers

Docker swarm: 'build' configuration in docker compose file ignored during stack deployment

We have created a docker compose file with multiple services. The images for these services are built in runtime using 'build' configuration option. The corresponding Dockerfile(s) are given in the respective directories. Sample docker compose…
dinup24
  • 1,652
  • 3
  • 16
  • 26
26
votes
1 answer

Messaging vs RPC in a distributed system (Openstack vs K8s/Swarm)

OpenStack uses messaging (RabbitMQ by default I think ?) for the communication between the nodes. On the other hand Kubernetes (lineage of Google's internal Borg) uses RPC. Docker's swarm uses RPC as well. Both are gRPC/protofbuf based which seems…
Manohar
  • 3,865
  • 11
  • 41
  • 56
26
votes
3 answers

Connecting two docker containers

I have two existing docker container web and db. I want to link these two container, so that they will communicate with each other. If i go with --link command means it will link web to a new image and not to the db.
Ragul
  • 373
  • 1
  • 3
  • 4
26
votes
5 answers

Docker Swarms and Stacks: What's the difference?

I just read Docker's excellent Getting Started guide, and just wanted to confirm I understand the basic Docker parlance before I go much further. These definitions are somewhat provided in the docs, but a lot of those docs are example-based without…
smeeb
  • 27,777
  • 57
  • 250
  • 447
26
votes
4 answers

How can one Docker container call another Docker container

I have two Docker containers A Web API A Console Application that calls Web API Now, on my local web api is local host and Console application has no problem calling the API.However, I have no idea when these two things are Dockerized, how can I…
Lost
  • 12,007
  • 32
  • 121
  • 193
25
votes
4 answers

How to change the service name generated by Docker stack in docker-compose

When deploying a stack of this compose file using: docker stack deploy -c docker-compose.yml myapp service-name: image: service-image namelike-property: my-custom-service-name // here I would like to know the property The generated service…
Igor L.
  • 3,159
  • 7
  • 40
  • 61
25
votes
7 answers

docker swarm init could not choose an IP address error

Experimenting with Docker Swarm with Docker Desktop for Mac. I tried this: docker-machine create -d virtualbox node-1 docker-machine create -d virtualbox node-2 docker-machine create -d virtualbox node-3 eval $(docker-machine env node-1) docker…
Justin
  • 2,224
  • 2
  • 22
  • 28