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
133
votes
5 answers

How does Docker Swarm implement volume sharing?

Docker Swarm can manage two types of storage: volume and bind While bind is not suggested by Docker Documentation since it creates a binding between a local directory (on each swarm Node) to a task, the volume implementation is not mentioned, so I…
alessandro308
  • 1,912
  • 2
  • 15
  • 27
110
votes
6 answers

Restart one service in docker swarm stack

Does anyone know if there is a way to have docker swarm restart one service that is part of a stack without restarting the whole stack?
tweeks200
  • 1,837
  • 5
  • 21
  • 33
109
votes
2 answers

Marathon vs Kubernetes vs Docker Swarm on DC/OS with Docker containers

I'm looking for some pros and cons of whether to go with Marathon and Chronos, Docker Swarm or Kubernetes when running Docker containers on DC/OS. For example, when is it better to use Marathon/Chronos than Kubernetes and vice versa? Right now I'm…
Johan
  • 37,479
  • 32
  • 149
  • 237
106
votes
10 answers

Docker Network not Found

In our team, we are currently transitioning to Docker to deploy everything on our server. We are using Docker Swarm and multiple (10+) compose files defining plenty (20+) of services. Everything works beautifully so far, except when we take down our…
borchero
  • 5,562
  • 8
  • 46
  • 72
105
votes
3 answers

When to use Docker-Compose and when to use Docker-Swarm

I'm trying to understand the differences or similarities between Docker-Compose and Docker-Swarm. By reading the documentation I have understood that docker-compose provides a mechanism to bind different containers together and work in…
Shabirmean
  • 2,341
  • 4
  • 21
  • 34
93
votes
2 answers

docker swarm how to find out why service can't start

I often have problems because a service that I deploy on docker swarm with multiple nodes won't start and there are not logs generated that I can look at with docker service logs {serviceName} There are many possible reasons for a service not to…
herm
  • 14,613
  • 7
  • 41
  • 62
86
votes
8 answers

Docker Containers can not be stopped or removed - permission denied Error

Issue: Can not stop docker containers, whenever I try to stop containers I get the following Error message, ERROR: for yattyadocker_web_1 cannot stop container: 1f04148910c5bac38983e6beb3f6da4c8be3f46ceeccdc8d7de0da9d2d76edd8: Cannot kill container…
Parth Modi
  • 1,675
  • 2
  • 20
  • 26
85
votes
2 answers

What's the difference between a stack file and a Compose file?

I'm learning about using Docker Compose to deploy applications in multiple containers, across multiple hosts. And I have come across two configuration files - stack file, and Compose file. From the Cloud stack file YAML reference, it states a stack…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
72
votes
3 answers

dockerd vs docker-containerd vs docker-runc vs docker-containerd-ctr vs docker-containerd-shim

This stuff is really getting confused now. Can someone please explain what's going on. Just the straight one liner difference. dockerd libcontainerd containerd docker-containerd docker-runc docker-containerd-ctr docker-containerd-shim thanks
Ijaz Ahmad
  • 11,198
  • 9
  • 53
  • 73
66
votes
12 answers

execute a command within docker swarm service

Initialize swarm mode: root@ip-172-31-44-207:/home/ubuntu# docker swarm init --advertise-addr 172.31.44.207 Swarm initialized: current node (4mj61oxcc8ulbwd7zedxnz6ce) is now a manager. To add a worker to this swarm, run the following…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
62
votes
5 answers

Using an IDE while developing on a docker container

There is something that I am not getting when developing an application while using docker containers. Lets say I am developing a java application and I set up a java container with jdk 8 base image, I still need to install java 8 jdk on my local…
62
votes
4 answers

Docker-compose: deploying service in multiple hosts

I have a docker-compose file that deploys 8 different docker services in the same host. Is it possible to deploy it in different hosts?, I would like to deploy some service in one hosts and another ones in other host remotelly. Would I need to use…
Asier Gomez
  • 6,034
  • 18
  • 52
  • 105
61
votes
7 answers

Docker Swarm Service - force update of latest image already running

environment docker 1.12 clusted on Ubuntu 16.04 Is there a way to force a rolling update to a docker swarm service already running if the service update is not changing any parameters but the docker hub image has been updated? Example: I deployed…
longday
  • 4,075
  • 4
  • 28
  • 35
60
votes
3 answers

REST vs gRPC: when should I choose one over the other?

I see more and more software organizations using gRPC in their service-oriented architectures, but people are also still using REST. In what use cases does it make sense to use gRPC, and when does it make sense to use REST for inter-service…
nmurthy
  • 1,337
  • 1
  • 12
  • 24
54
votes
6 answers

How to directly mount NFS share/volume in container using docker compose v3

I have a compose file with v3 where there are 3 services sharing/using the same volume. While using swarm mode we need to create extra containers & volumes to manage our services across the cluster. I am planning to use NFS server so that single…
vivekyad4v
  • 13,321
  • 4
  • 55
  • 63
1
2 3
99 100