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

tcp_keepalive_time in docker container

I have a docker host that has set a net.ipv4.tcp_keepalive_time kernel parameter to 600. But when a container runs, it uses a different value: $ sysctl net.ipv4.tcp_keepalive_time net.ipv4.tcp_keepalive_time = 600 $ docker run --rm ubuntu:latest…
kwek
  • 131
  • 2
  • 2
  • 7
13
votes
2 answers

Adding a service to a stack after the stack has been deployed

I’m trying to add a service to a stack after the stack was already deployed. But this new service is having trouble communicating with services (redis) inside the stack. This is my current understanding of stacks and services, please let me know if…
13
votes
4 answers

Docker service stuck in New state (Swarm)

I'm facing a strange issue with my Docker Swarm (a cluster of 3 managers and 5 workers). I have many running services right now and when I approach around 100 services (and with replications more than 110 services), the new services I want to run…
Paul Rey
  • 1,270
  • 1
  • 15
  • 26
13
votes
3 answers

Can Docker containers run in Windows IoT Core

Is there a way to run a Docker container in Windows IoT Core? I have seen it can be used in Azure, Windows Server and desktop W10 but there is no evidence about Windows IoT Core and I am not sure if some of the already existing installations of…
13
votes
1 answer

Should nginx be packed into the same container as Django when deploying with Docker Swarm?

We are looking to move our current Nginx/Gunicorn/Django stack into Docker, and deploy it for high availability using Docker Swarm. One of the decisions we have been struggling with is whether or not to place Nginx in the same container as…
Leah Sapan
  • 3,621
  • 7
  • 33
  • 57
13
votes
1 answer

Running Elasticsearch containers in swarm mode

Elasticsearch is designed to run in cluster mode, all I have to do is to define the relevant node IPs in the cluster via environment variable and as long as network connectivity is available it will connect and join the other nodes to the cluster. I…
Or Weinberger
  • 7,332
  • 23
  • 71
  • 116
13
votes
2 answers

how get logs for docker service tasks on "preparing" state

I'm playing around now with docker 1.12, created a service and noticed there is a stage of "preparing" when I ran "docker service tasks xxx". I can only guess that on this stage the images are being pulled or updated. My question is: how can I see…
Shay Tsadok
  • 913
  • 1
  • 7
  • 26
13
votes
2 answers

How to log container in docker swarm mode

Is there a way to log the containers which are created with the docker service create in docker swarm mode?
sope
  • 1,619
  • 5
  • 19
  • 37
12
votes
1 answer

Changing shared memory size in docker compose

I'm currently having some issues with the shared memory in one of my containers. I have a docker-compose file in where I expect to be able to set the size. I basically converted an old docker run that had a --shm-size 16gb. I would guess it's as…
12
votes
2 answers

how to setup kibana user credentials with docker elk stack

How to setup login credentials for kibana gui with docker elk stack containers. What arguments and environmental variables must be passed in docker-compose.yaml file to get this working.
12
votes
3 answers

How can I update the latest image that my docker service/stack uses?

In the .yml definition, I'm always pulling the latest image of my service. When I push a new image to the registry and I want to update the image that the service in my stack uses. I don't see any --pull flag, and the documentation for docker…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
12
votes
6 answers

docker swarm throwing an error "swarm already part of swarm"

docker swarm throwing an error "swarm already part of swarm" when I am joining the new node to the existing node I am running the docker swarm in my local machine and trying to init the swarm and getting executed very well but when i am trying to…
Hushen
  • 427
  • 1
  • 4
  • 15
12
votes
2 answers

connect to mysql container from another container

I'm trying to connect to a mysql container from within another container on the same network specified by a compose file. version: "2" services: web: build: context: . dockerfile: nginx/Dockerfile ports: - "8080:80" …
Confused
  • 121
  • 1
  • 1
  • 3
12
votes
2 answers

What benefits does Docker Compose have over Docker Swarm and Docker Stack?

From what I read it seems that Docker-Compose is a tool to create multiple containers on a single host while Docker Swarm is a tool that can do the exact same thing but with more control and on multiple hosts with the help of Docker Stack. I went…
Kyle Truong
  • 2,545
  • 8
  • 34
  • 50
12
votes
3 answers

Docker swarm replicas on different nodes

I'm using a docker-compose file version 3 with its deploy key to run a swarm (docker version 1.13) and I would like to replicate a service in order to make it resilient again single node failure. However, when I'm adding a deploy section like…
sas
  • 7,017
  • 4
  • 36
  • 50