Questions tagged [docker-swarm-mode]

Swarm mode refers to cluster management and orchestration features embedded in Docker Engine. When you initialize a new swarm (cluster) or join nodes to a swarm, the Docker Engine runs in swarm mode.

285 questions
4
votes
0 answers

MongoDB:latest docker container terminates with exit code 14

I'm making use of the mongodb:latest container for testing out WikiJS running in containers On the odd occasion the mongodb container terminates with exit code 14, then Docker Swarm tries to restart it failing continuously with the same error - only…
JohanB
  • 43
  • 1
  • 4
4
votes
4 answers

Docker swarm: how to place app and db together?

I have stack with 2 services: Spring boot application and mongo database. I want to deploy this stack to Docker Swarm (1 node in Germany, 1 in Finland and 1 in Estonia). Currently Swarm schedules application to Germany cluster and Database to…
kyberorg
  • 637
  • 1
  • 8
  • 22
4
votes
1 answer

Docker service creation taking more time

i'm new to this docker service creation please help me if i'm wrong , i executed this command docker service create --name "testApp" -p 8000:8000 testApp Its taking too long time to execute (stuck at overall progress 0 out of 1 tasks) so that my…
Mac D'zen
  • 151
  • 11
4
votes
1 answer

docker stack rm followed by deploy fails and runs on consecutive builds

Bash script in Jenkins build sections #!/bin/sh docker build -t smstake:latest . #Push to the private repository applying the proper tags for the image docker tag smstake:latest reg01.dev.01cloud.com:5000/smstake:1.0.1 docker push…
4
votes
1 answer

Creating new user beside root in docker-compose having connections issues

I am running a docker stack using the docker-compose . The docker-compose.yml looks something like below. The problem is if I add the default user root then it works fine but changing the user to another user say tara throws an error. I…
4
votes
0 answers

How to create a Docker in Docker Service on Docker Swarm (Swan Mode)

I would like to run (Docker-in-Docker) DIND inside a SWARM cluster(Swarm Mode). As Swarm does not support the --privileged flag its not possible to start a DIND Container like you see in the tutorials. However --privileged can be "emulated" What…
Vad1mo
  • 5,156
  • 6
  • 36
  • 65
4
votes
2 answers

How to call all containers/replicas behind a docker swarm service

Consider there is a docker service with 5 replicas. I want to make a rest call to all 5 replicas. If any replica fails the whole request should fail. I want to do this because sometimes the code inside the container stops running and does not…
Luke101
  • 63,072
  • 85
  • 231
  • 359
4
votes
1 answer

Is network security / encryption provided by default in docker swarm mode?

In this document it says that: Overlay networking for Docker Engine swarm mode comes secure out of the box. You can also encrypt data exchanged between containers on different nodes on the overlay network. To enable encryption, when you create an…
Ole
  • 41,793
  • 59
  • 191
  • 359
4
votes
1 answer

How to back up docker swarm mode service configuration for disaster recovery

I have a number of servers running as a swarm using docker swarm mode. There are several (5+) stacks running in the swarm each with their respective docker-compose.yml files. I am mainly using docker stack deploy to manage my stacks (editing my…
4
votes
1 answer

Why Can't I Access Service in Docker Swarm by its Name or VIP?

So I have a docker engine (version 1.12.6, build 78d1802) running in an Ubuntu host. I created initiated a swarm using docker swarm init --advertise-addr 192.168.1.2 I have a locally prebuilt image using which I create a service called nodeapp as…
Harindaka
  • 4,658
  • 8
  • 43
  • 62
4
votes
0 answers

Can docker-swarm be configured to auto scale containers according to load

In a docker-swarm mode setup, say I have a container accepting requests from other containers or from components external to the swarm. Is there a mechanism to configure the swarm to auto-scale the number of containers running that specific tasks…
Shabirmean
  • 2,341
  • 4
  • 21
  • 34
4
votes
3 answers

Is this possible to get all running containers id's in docker swarm services?

I am newbie in docker swarm mode, If I want more details about my swarm service , from command line I can run docker service ps "service name ", or from docker rest "/v2/services/my-ngx" [msreddy@swarmnode1 ~]$ docker service ps my-ngx ID …
thisisms
  • 371
  • 5
  • 19
4
votes
1 answer

Flink TaskManager cannot connect to JobManager in docker swarm task

I cannot manage to make a TaskManager communicate with the JobManager on a docker swarm stack. The content of the stack.yml file I use to docker stack deploy is: version: "3" services: jobmanager: image: affo/flink:1.1.3 ports: -…
affo
  • 453
  • 3
  • 15
4
votes
1 answer

Docker Swarm Mode routing mesh vs linkerd

Is Docker Swarm Mode routing mesh a built-in substitute for linkerd routing mesh? In other words, is there still any reason to look into linkerd if there is an out-of-the-box solution?
Dmitry Trofimov
  • 503
  • 4
  • 10
3
votes
1 answer

How to setup haproxy with docker swarm where haproxy is "outside" the overlay network?

I'm trying to setup a docker based system with the least amount of network abstraction/virtualization possible. This is why I avoided k8s and am trying docker-swarm instead. I'd like haproxy to be started directly via systemd and listen to external…
Saurabh Nanda
  • 6,373
  • 5
  • 31
  • 60