Questions tagged [docker-swarm]

Part of the docker software suite to cluster docker servers into a single virtual service.

The swarm uses the normal docker API, thus any software which can communicate with docker, including the command line docker client, can also use a swarm.

Most use cases heavily utilize the feature of the transparent communication of the containers between the docker hosts. Additionally, it simplifies deployment to multiple hosts and provides HA.

71 questions
14
votes
2 answers

Combine Docker Swarm and Kubernetes

My company is trying to play a little catch-up in the DevOps space. I have been doing a lot of research on containerization of applications and the orchestration systems that go with it. I came across an article (one that I wish I had saved) where…
EvanM
  • 248
  • 1
  • 6
9
votes
2 answers

Options to assign a static ip to a service running in docker swarm

Situation: docker swarm with 3+ nodes service running in the swarm with replicas=1 and restart=always swarm hosts have multiple interfaces - one for each vlan, with the same name service is deployed as a stack I want to replace a service running…
vlad b.
  • 193
  • 1
  • 6
8
votes
1 answer

Assign DNS name to Docker Swarm containers with public IPv6

I'm trying to understand how I would set up a Docker container (running in Swarm mode) with publicly available IPv6. I know Docker Swarm uses mesh routing, but I don't quite understand how I can dynamically assign DNS names to addresses. As an…
JacksGT
  • 206
  • 1
  • 3
7
votes
1 answer

Flask, Gunicorn and Docker Swarm

so I have this nice rest API implemented in Flask running in docker and I am thinking about scaling. This is how I progressed: CMD ["flask", "run", "--host=0.0.0.0"] and docker run -d -p 5000:5000 pyrest-alpine works fine CMD ["gunicorn", "-w",…
Ondra N.
  • 73
  • 4
6
votes
2 answers

Docker stack deploy doesn't pull images

I'm launching through Ansible (just SSH basically) a docker stack deploy, the issue is also true when launching directly from a manager: docker stack deploy --prune --with-registry-auth -c /docker/docker-compose.yml "test-stack" I have my…
jayooin
  • 231
  • 3
  • 8
6
votes
2 answers

How to Shutdown Docker Stack on Container Failure

Say I have several docker services using swarm defined as such: version : '3' services: server: image : my_server:latest deploy: replicas: 5 restart_policy: any database: image : my_db:latest …
Nyarmith
  • 101
  • 1
  • 3
5
votes
1 answer

Will Docker Swarm work if masters are spread over 3 continents?

I need to deploy a highly available Docker Swarm on Azure. I created a VNet in 3 locations: Brazil South (my location), East US and West Europe. Then I enabled network peering so VMs in these locations can see each other as if they were in the same…
Igor Gatis
  • 153
  • 3
5
votes
2 answers

Docker swarm join linux container Error - remote CA does not match fingerprint

Start docker swarm : docker swarm init --advertise-addr MANAGER-IP Join docker swarm: docker swarm join --token MANAGER-IP:2377 I am using Windows 10, it is working fine with Windows container mode, but gives below error in Linux container…
Nitul
  • 243
  • 3
  • 7
5
votes
2 answers

Load balancing kubernetes cluster on budget KVM provider?

There are a lot of cheap KVM providers these days that offer simple nodes with just a single external IP per node, without any load balancing. What is a typical budget load balancing solution for this scenario? I am planning to use either docker…
barrymac
  • 257
  • 1
  • 5
5
votes
1 answer

Docker swarm stop spin up containers at 250

TLDR: Docker won't spin up more then 250 containers. I'm deploying a cluster of 3 docker services to a swarm with 2 nodes. 2 of the services need to contain 1 container (have a replicas: 1 in the docker-compose file), and the third service need to…
nirgn
  • 201
  • 1
  • 7
4
votes
2 answers

Access private DockerHub repo in Docker Swarm

I am trying to deploy a docker swarm using Digital Ocean's docker-machine driver. This is currently a single node that contains several public DockerHub images, and one private. I am having difficulties in configuring it to accept the private…
DannyB
  • 141
  • 1
  • 2
4
votes
1 answer

How to fix a "heartbeat failure" in Docker Swarm?

My cluster is currently located in a single data center. I've been trying to change that by adding a single worker node from another data center, but so far it hasn't worked. I'm able to make this node join the swarm and get listed by the managers,…
ivarec
  • 183
  • 1
  • 5
4
votes
1 answer

How do I prevent service A from being placed in the same node as service B in Docker Swarm?

From the docs, I could only find information about placement restrictions based on node attributes, likes labels and its role. However, I couldn't find how to configure placement based on the services already running on a given node. How can I do…
ivarec
  • 183
  • 1
  • 5
4
votes
1 answer

Docker managers are losing quorum on AWS

I have deployed Docker EE on AWS by choosing the package directly from the AWS Marketplace: Docker EE for AWS (Standard/Advanced) - BYOL. The cluster has been successfully launched and deployed on AWS. After deploying several stacks on the UCP…
ibedelovski
  • 151
  • 3
4
votes
2 answers

Docker MongoDB image - How to specify credentials other than in the compose file?

I'm using this docker image https://hub.docker.com/_/mongo/. That image provides a way of initializing a mongodb root database user with env variables which I can specify in the compose file as follows: environment: - MONGO_INITDB_DATABASE=db -…
joe.js
  • 143
  • 1
  • 5
1
2 3 4 5