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

What is the difference between using Docker Machine with Swarm and using Swarm through the Docker daemon?

What exactly is the difference between having multiple docker machines in a swarm (a manager and many nodes) and having multiple replicas of a docker service in a swarm?
Alexander George
  • 871
  • 9
  • 22
12
votes
3 answers

Docker swarm run tasks only in workers

Say that we are working in swarm mode and we have three nodes: manager1 worker1 worker2 Is it possible to create a service and specify that the tasks only has to run in the workers (worker1 and worker2) and not in the managers (manager1) I am…
niqui
  • 1,562
  • 1
  • 16
  • 28
12
votes
3 answers

Docker: Swarm worker nodes not finding locally built image

Maybe I missed something, but I made a local docker image. I have a 3 node swarm up and running. Two workers and one manager. I use labels as a constraint. When I launch a service to one of the workers via the constraint it works perfectly if…
JoeG
  • 7,191
  • 10
  • 60
  • 105
12
votes
4 answers

How to deploy consul using Docker 1.12 swarm mode

I have a consul cluster of 3 servers. I also have a docker swarm of around 6 workers and 3 masters (the masters are on the same hardware as the consul servers but are set with availability == drain to prevent them accepting work). I generally use…
MarkH
  • 682
  • 1
  • 6
  • 16
12
votes
1 answer

How to access Weave DNS-Server from external?

I use the Weave network plugin on a Docker-Swarm. I created a docker network with a specific IP-Range, different from the default Weave Network, to which I route from my internal network. To make the containers even better accessible I use weave to…
Ingo Meldau
  • 484
  • 3
  • 13
12
votes
2 answers

Deploying docker swarm without using docker machine

Currently I have a bunch of RHEL7 VMs running on RackSpace and want to deploy docker swarm for testing purpose. The Docker Docs only describes the method to deploy docker swarm by using docker machine. Question: Since VirtualBox cannot be used in…
Jim
  • 133
  • 1
  • 8
12
votes
3 answers

Where is the docker swarm token stored?

I've created a docker-machine swarm cluster using a new generated token, which was stored within an environment variable. The environment variable was only for valid for the current session, and is deleted afterward. Now I want to add a new…
Sabbane
  • 2,938
  • 4
  • 21
  • 27
11
votes
1 answer

How to fix Docker error "hnsCall failed in Win32: An adapter was not found" when deploying service?

I'm attempting to run a four-node swarm from my host machine, with my machine being the manager, and three Hyper-V VMs as worker nodes. I'm attempting to run a static web page as a service across all nodes, but keep receiving hnsCall failed in…
11
votes
2 answers

cannot validate certificate for because it doesn't contain any IP SANs

I'm working on a GitLab CI pipeline that will deploy my docker stack. I'm trying to set the $DOCKER_HOST to be tcp://DROPLET_IP:2377, but I'm getting an error saying that my certificate does doesn't contain any IP SANs. I'm testing with a Digital…
briancaffey
  • 2,339
  • 6
  • 34
  • 62
11
votes
1 answer

Docker Swarm Mode Error: Joining Two Workers To One Manager

I'm having difficulty setting up a Docker Swarm with two workers and one manager. Everything works fine until I add the second worker. After adding the second worker, the first worker's daemon enters some sort of error state where a simple docker…
11
votes
1 answer

Clarification on Docker Compose's `start_period` parameter

I am trying to understand how the start_period works with Docker Compose. If we have the following as a Healthcheck: --start-period=60s --retries=2 Does that mean that Docker Swarm will try twice, each time wait 60 sec before considering the…
Cuthbeorht
  • 157
  • 1
  • 1
  • 6
11
votes
5 answers

How to remove all services in Docker Swarm

I want to remove all services I created in a Swarm: To remove all the containers I used: docker rm -f $(docker ps -a -q) Is there a way to remove all the service with one line ? I don't have a stack: so docker stack rm STACK_NAME won't work.
E235
  • 11,560
  • 24
  • 91
  • 141
11
votes
5 answers

How to get all ip addresses on a docker network?

I have containers running in a swarm stack of services (on different docker-machines each) connected together on an overlay docker network. How would it be possible to get all used ip adresses on the network associated with their services or…
Paul Soubrane
  • 111
  • 1
  • 1
  • 5
11
votes
2 answers

privileged mode in docker compose in a swarm

I am using docker-compose.yml to deploy services in a docker swarm which has cluster of raspberry pis. My services require access to the raspberry pi GPIO and needs privileged mode. I am using docker version 18.02 with docker-compose version 3.6.…
eth crypt
  • 277
  • 2
  • 4
  • 10
11
votes
2 answers

Any reasons to not use Docker Swarm (instead of Docker-Compose) on a single node?

There's Docker Swarm (now built into Docker) and Docker-Compose. People seem to use Docker-Compose when running containers on a single node only. However, Docker-Compose doesn't support any of the deploy config values, see…
KajMagnus
  • 11,308
  • 15
  • 79
  • 127