Questions tagged [docker-swarm]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

How does Docker Swarm balance tasks?

From docs.docker.com - force-the-swarm-to-rebalance I can see that Docker Swarm "tasks are given to less busy nodes" to reach eventual balance. I'm trying to find more info on what "...
0
votes
1answer
14 views

Increase concurrent users by limiting container resources with docker-swarm

Consider the scenario where I have: 4 replicas of an app 4 cores On load, the app consumes 100% for a single core Can I tell each replica to only use 50% of the core and if so, would this allow at ...
1
vote
1answer
16 views

Retrieve files deleted after Docker service rm

I had to, so I removed a service with docker service rm but I forgot to get the log files of the service. Now I am not able to find those. Can anyone help me or suggest to me if and how can I get ...
0
votes
2answers
156 views

How to get the IDs of Docker Containers that belong to a Service, given the Service name or id

Background I'm trying to maintain some websites running in a Docker Swarm. I want to do security updates on them. In a non-Docker environment, like a VPS, my simple process is that I would connect in ...
0
votes
1answer
136 views

Cannot access service using docker-swarm, but without

Currently I try to setup docker-swarm using two nodes and deploy portainer on them. Both nodes are virtual machines on the same host and are on the same network (172.16.255.255). Addtionally there is ...
0
votes
0answers
100 views

Unable to get traefik running with prometheus and grafana on docker swarm

I have asked this question at official Traefik Community Forum and I have not received any replies there yet so I am hoping I have better luck here :) I am trying to run a traefik-grafana-prometheus ...
0
votes
1answer
28 views

How to deploy MySQL server repeatedly

From fifty-thousand feet, how are, for example, multiple MySQL containers handled? In the context of my limited experience, simply running the container is insufficient, with additional configuration ...
1
vote
0answers
15 views

How to fetch PublishedPort from inspect

I'm trying to fecth the PublishedPort from my docker service. I think I'm close to fetch it. Here is the data : [ { "ID": "a51ijaddvaf1paeh1dn5p1k3", "...
1
vote
1answer
20 views

Linking nodes in a cluster to run a single instance of a docker container

In this cluster, there are 11 identical nodes, each with 16gb of memory. So far, I've been able to connect each node of the cluster to a docker swarm hosted on the control node. My end goal is to run ...
2
votes
0answers
20 views

How can I allow admins to run Django Admin CLI commands against a Django application deployed live as part of a Docker Swarm cluster?

Specifically, I want them to run the following: https://django-q.readthedocs.io/en/latest/monitor.html I am looking to write a minimal wrapper-script which would simply allow them to run a single ...
2
votes
1answer
398 views

How to automatically update Swarm services when the Docker daemon restarts

I'm using Docker Swarm, and I have condition: always in the restart_policy of my compose file, so my services are started automatically when the system reboots or the Docker daemon is restarted. What ...
2
votes
3answers
87 views

How to get the next friendly name that Docker will assign to the container it will make?

Background When you start a Docker container as in the following example: $ docker run -ti ubuntu:latest Docker docker automatically assigns the container an ID and a friendly name. Docker ...
2
votes
1answer
87 views

Docker swarm container monitoring

I have been on a typical journey of: deploying software on a machine deploying software in a container deploying software using docker swarm The need for this journey is that swarm removes a large ...
3
votes
2answers
276 views

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 ...
1
vote
1answer
2k views

Docker container stuck in “new” state - Docker swarm - service stack

I am deploying a service stack to a Docker swarm like so: $ dt stack deploy --with-registry-auth -c tmp.stack.docker-compose.yml tmp Creating network tmp_my-network Creating service tmp_my-service $ ...
2
votes
1answer
89 views

How to properly manage mupltiple environmental variables with Gitlab CI and Docker Swarm?

In our project we are using Docker and we have multiple services with a pile of environmental variables (mostly credentials to various dbs, mail, samba, 30+ entries in total). It all worked well with ...
1
vote
2answers
86 views

Command returns 0.0.0.0 for IP but only for leader

I have a 3 node docker swarm cluster and I am trying to get the IPs of each one via docker node inspect node-1 --format '{{ .Status.Addr }}' but I am having an issue where when the node I am trying ...
1
vote
2answers
560 views

Why `docker stack` needs Docker to run in swarm mode? What are the implications when working on a single node?

I am experimenting with docker stack as a replacement to docker-compose. But I had the following message on my first deploy attempt: sudo docker stack deploy --compose-file stack/app-stack.yml app-...
3
votes
1answer
2k views

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/...
2
votes
1answer
72 views

Docker Containers fails to DNS resolve on subnet 10.0.2.0/24

The ultimate problem I am facing is this: [root@527eb70c04c9 my-service]# ping google.com ping: google.com: Name or service not known Inside my container, I can't resolve public domains, although ...
2
votes
1answer
35 views

How to create a preemptable docker container?

Is there any way by which I can set a lifetime for a container after that much of time it should be stopped automatically and only awake when someone send a request. I wanted something like ...
5
votes
1answer
284 views

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 ...
3
votes
1answer
1k views

How to get hostname from node-exporter in Docker Swarm?

I have setup my monitoring with the cadvisor, node-exporter, prometheus, grafana stack in my clustered environment using docker swarm. What is the easiest way to get my actual hostnames picked up by ...
4
votes
1answer
3k views

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 ...
3
votes
1answer
377 views

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 ...
1
vote
1answer
136 views

Executing a command in running docker swarm service

I am trying to run a Django project in docker swarm mode. The problem is I want to index the Elastic search container which needs to be run only after postgres completes the SQL dumping process (only ...
1
vote
1answer
39 views

Is it ok to logout after calling docker stack deploy?

If I immediately terminate the process that called docker stack deploy will the docker swarm continue? My use case is this: In my CI job I ssh into my swarm cluster node. I copy the new stack.yml ...
1
vote
1answer
301 views

Docker Swarm loop

I have written my own simple docker image. It works fine. Then I created my docker swarm with only two nodes a master and a slave and started a service with the following command: docker service ...
7
votes
2answers
3k views

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 ...
2
votes
2answers
1k views

Join a Linux Docker swarm with a local Windows Docker for test purposes

I'm currenlty trying to connect/join a Linux Docker Swarm cluster with my Windows machine in order to test a stack without sending the stack over and over to my test cluster under Linux. My problem is ...
1
vote
1answer
845 views

Docker Swarm join-token not working

I am trying to add a new node into my swarm over the internet but it doesn't seem to connect through a proxy. I am trying to proxy using Caddy. The proxy configuration results in the same as for any ...
1
vote
1answer
427 views

Error while trying to run docker redis image on Alpine Linux 3.7.0

Specifications Microsoft Windows [Version 10.0.14393] VirtualBox 5.2.8 Alpine Linux Extended 3.7.0 Docker Info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 1 Server Version: 17.10.0-ce ...
4
votes
1answer
109 views

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....
3
votes
1answer
6k views

Docker swarm replica stays 0/1 and service stays in status new

I have a problem with my docker swarm. I created a new service with the following command: docker-compose config | docker stack deploy -c - serviceNameX --with-registry-auth The docker-compose file ...
3
votes
0answers
3k views

Docker Swarm Service Health Check? [closed]

Docker Swarm provides a nice way to configure container health checks in the Docker file or a stack compose file. Health status of a container can be checked using docker inspect <container> or ...
4
votes
2answers
3k views

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 ...
1
vote
1answer
462 views

Windows Docker in swarm with Linux nodes connection issue

I have the following setup for my docker swarm: three Linux master nodes one Linux slave nodes Windows slave node They are connected with an overlay network. Within the linux nodes everything works ...
2
votes
1answer
326 views

Is a decentralized Docker swarm possible?

I want to run services in our office in containers. The problem I have is that we do not have a spare machine available to act as the dedicated host. So I am considering creating a swarm using ...
1
vote
2answers
168 views

Automated Docker swarm reinitialization and token distribution

Imagine you want to reset your Docker swarm from time to time. How do you distribute join tokens to those zillions of nodes? How much automation is possible here?
3
votes
2answers
80 views

How can secrets be distributed in a docker swarm?

Currently I use env and sql files so that docker compose can load secrets from there and build sql database docker instances with specific user/password. The question is, how can this be ported to ...
7
votes
1answer
971 views

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 ...
4
votes
1answer
49 views

Strange orchestration behaviour of a Docker Swarm manager - pile of containers

For some unknown reason, the manager host which gets the command to launch a stack, tries to pile up all the containers on itself; other worker/manager hosts stay unemploed. Unfortunately there are ...
5
votes
2answers
3k views

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,...
6
votes
2answers
1k views

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 ...
1
vote
1answer
1k views

Docker daemon error on joining swarm node - could not find local IP address - unknown port

Consider the following setup: Three hosts in the same network: Host A - SLES Host B - Ubuntu Host C - Ubuntu Then, the following has worked: Init swarm on A Join swarm at B, make B a manager The ...
5
votes
2answers
288 views

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 ...
5
votes
1answer
198 views

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 ...
3
votes
1answer
314 views

In what all cases would one use an external load balancer over the Ingress routing mesh in a Docker cluster?

Also, would the routing mesh act as an application load balancer? Like for example, if I am having a Docker cluster in AWS, how does the ELB added to it, work? And how would that be different from ...
7
votes
1answer
994 views

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 ...
13
votes
2answers
525 views

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 ...