Questions tagged [docker-swarm]
Docker-swarm is a tool that is able to create a cluster of docker nodes and deploy containers in this cluster.
188
questions
67
votes
3
answers
67k
views
How to use docker secrets without a swarm cluster?
Currently we im a running application on a single docker container, the application needs all sorts of sensitive data to be passed as environments variables,
Im putting those on the run command so ...
20
votes
2
answers
20k
views
How to delete a docker network that does not exist?
I have a docker swarm configuration with 3 nodes. There is a network that sits on only one of the nodes. On that particular node, docker network ls shows the network, docker network rm [network-id] ...
19
votes
1
answer
29k
views
List containers from all nodes of docker swarm mode
We are running docker in swarm mode on a few nodes.
Could not find a quick and easy way to list all containers (preferably with status) in the swarm from the manager nodes. One can see overlay ...
15
votes
2
answers
7k
views
docker swarm database connection reset by peer
I am running a spring boot application with docker swarm and I use postgres for database. When I run both of them as docker service, database connection fails consistently and randomly (as you can see ...
11
votes
1
answer
1k
views
Using private physical networks with Docker swarm mode
I am working on a production setup with Docker in swarm mode (using Docker 17.03.1-ce). There will be 2 data centers involved. In both data centers, all machines have both a public IP and a private (...
10
votes
2
answers
14k
views
How do you access a service that is in another stack?
I have a docker swarm configuration and in there I deployed two stacks (main and mon) I can expose a port in one stack and I can refer to it from another. However, I was trying to find a way of not ...
7
votes
1
answer
10k
views
What is HEALTHCHECK really used for when running Docker in swarm mode?
I'm having a hard time figuring out what HEALTHCHECK really is used for when running Docker in swarm mode.
One place suggests that Docker will restart a task which is considered unhealthy. Another ...
7
votes
1
answer
3k
views
WEBRTC MCU/SFU inside kubernetes - Port Ranges?
I am using janus-gateway as a webrtc media server for group videocalling. Previously I had deployed it in a single node using docker-compose but now I want to be able to scale it horizontally. For ...
6
votes
4
answers
15k
views
How to set Linux capabilities on docker swarm mode service invocations
I'm looking into the notion of vault running under swarm (1.12.x).
A single container would be started with:
docker run -d --cap-add IPC_LOCK -p 8200:8200 -p 8215:8125 --name vault --volume /vagrant/...
6
votes
1
answer
2k
views
nginx in front of docker swarm services
I am thinking about how this is meant to be done in a serious way for weeks now and didn't come to a conclusion yet.
Maybe I think into the wrong direction.
Lets say you have a hundred web apps which ...
5
votes
1
answer
199
views
High Network I/O Between Docker Swarm Managers
Network Traffic
We run Docker Swarm with 3 manager nodes and 16 worker nodes. The network I/O between two of the three manager nodes is very high. To illustrate this, here is the output from iftop ...
4
votes
1
answer
15k
views
How to get IP address of a docker swarm node?
I have two virtualbox ubuntu16 guests which can communicate over a host-only network: 172.28.128.0/16
I created a docker swarm using the steps from docker docs. Following is the state of my swarm:
...
4
votes
2
answers
8k
views
Unable to access Wordpress site created as a Docker Stack [closed]
I am trying to create a Wordpress site inside a Docker stack composed of the following services:
wordpress - the Wordpress site itself
db - the MySQL container
I have the following stack.yml file:
...
4
votes
3
answers
4k
views
How to scale docker swarm dynamically
We have a docker container which can service only one request from user at a time.
So, we want to scale up and down whenever there is a request from user.
But in the docker swarm I can see only ...
3
votes
2
answers
5k
views
Docker Swarm. Containers in one overlay network but on different nodes can't reach each other via tcp
I have a docker swarm cluster with 12 nodes. Containers deployed on single node can reach each other fine via overlay network, but when they are deployed on different nodes, there are connectivity ...
3
votes
2
answers
1k
views
Is there a still a reason to use Consul with modern ("Integrated") Docker Swarm?
I've done a little Docker Swarm in the past, and it was pretty uncomplicated - create a Swarm Manager on one node, create Swarm Workers on two more nodes, stick with a single Manager. I would like to ...
3
votes
2
answers
2k
views
Remove docker service and wait for containers to stop
Let's say I have the Docker Swarm services myservice1 and myservice2. How can I remove these services and wait for the associated containers to stop?
3
votes
1
answer
5k
views
Docker Swarm free to use? can be used in production for free? [duplicate]
I am a beginner so asking this silly question. Is docker swarm free to use for building cluster of docker containers? i heard it is $15/hr ? We can use swarm in production without paying anything? any ...
3
votes
1
answer
1k
views
MariaDB on docker keeps corrupting data
I'm using the official MariaDB mariadb:10.4.6-bionic image and I have a problem: my tables corrupt themselves. This had happened at least four times this month:
on two different dev machines using ...
3
votes
1
answer
3k
views
Howto use a docker/swarm secret value as an environment variable in "docker service create"?
I need to write scripts that create services on docker swarm clusters. An example script would be simiar to this:
docker service create \
--name postgres \
--mode global \
--constraint "...
3
votes
1
answer
5k
views
Docker container unable to connect to MongoDB Replica set
I'm using Docker Swarm to create a cluster of web applications and databases.
I've four containers running, three of them are a single mongodb replica set and the last is a asp.net core application ...
3
votes
1
answer
2k
views
nginx reverse proxy for Docker 1.13 "Swarm Mode" cluster
I have an existing docker swarm cluster running on two nodes and I want to add nginx for reverse proxying. I am asking this question because I am facing couple of problems that I don't know how to ...
3
votes
2
answers
2k
views
Docker-Swarm with RabbitMQ Autocluster
We are facing the following problem: How to run RabbitMQ in a Docker-Swarm with persistent Data.
Currently we have the following setup in place:
Docker-Swarm 3 Nodes
GlusterFS as replicated ...
3
votes
0
answers
1k
views
How to access database on Docker swarm without exposing ports to internet?
I had a really hard time coming up with a short and descriptive title for this... Let me explain:
In classic Docker (no swarm mode) I had my system set up in a way that my PostgreSQL database would ...
3
votes
1
answer
865
views
Service discovery for outside of docker swarm
The embedded DNS server inside of Docker SWARM works well for communication within SWARM. But it seems it is impossible for clients outside of SWARM to discover the deployed services within SWARM ...
3
votes
0
answers
812
views
Where does nginx Docker container cache proxy_pass DNS records?
I'm running Nginx as a reverse proxy as a container in my Docker Swarm. I know at startup it caches all the aliases for my proxy_pass locations. When running a service in Docker Swarm, the service ...
3
votes
0
answers
620
views
Docker Swarm - database connection reset by peer
I am running a Spring Boot application with Docker Swarm and I use Postgres for database.
When I run both of them as Docker service, database connection fails consistently and randomly (as you can ...
3
votes
0
answers
337
views
Running multiple web applications in docker swarm on vmware host
I'm trying to understand how to run multiple web applications on a Docker swarm that is running on VMWare hosts. And how to have external DNS resolve to the ip address of the container that is ...
2
votes
2
answers
6k
views
Publish Docker Swarm services on specific IP addresses
On Centos 7.4 I am setting up a swarm where I want to run multiple routers all reachable on port 80/443.
The purpose is to host multiple environment (test/staging...) on a single swarm, all ...
2
votes
1
answer
3k
views
How do I list Docker VIP addresses?
I can list all container IP address inside a docker overlay network using:
~# docker network inspect <network_id>
I'm trying to do resolver troubleshooting in some Docker swarm stack. It seems ...
2
votes
1
answer
2k
views
Why is a physical interface not part of the docker_gwbridge?
When I look at the docker_gwbridge, I see that all containers on that host are members of the bridge.
bridge name bridge id STP enabled interfaces
docker_gwbridge 8000....
2
votes
1
answer
2k
views
What's the common practice of managing the external IP of a docker swarm?
I am creating a docker swarm with 3 managers and 2 workers. A service is running in the swarm and exposes port 80. So we can hit the service with any node's ip. But what if the node goes down? ...
2
votes
1
answer
660
views
Docker Storage in AWS. S3, EBS or EFS
I have just moved companies and I am building a new docker swarm on aws. In my last organisation everything was on premises.
I am trying to understand my options for persistent volumes, and see that ...
2
votes
1
answer
3k
views
Does Docker Swarm migrate resource hungry containers to other nodes?
Let's assume a 3 node Docker cluster. One one of these nodes, resources are tight. A couple of services which can be quite greedy in terms of CPU or RAM happened to start on the same host.
Will ...
2
votes
1
answer
2k
views
How to do Failover and load balancing with Swarm
We are using docker since 1 1/2 Year with "single Host" Setups without trouble. But now we want to go further and use the Docker Swarm (latest version).
Our old setup was just, single hosts with ...
2
votes
1
answer
814
views
Accessing different host's docker containers via portainer
I have a few containers (running various services) on my ubuntu server and i manage those containers via portainer, which is also one of these containers. I would like to also manage a pihole ...
2
votes
2
answers
2k
views
Automatically login on Amazon ECR with Docker Swarm
We have Docker images hosted on Amazon ECR and the goal is to run them on EC2 instances using Docker Swarm. The services are configured in global mode so that they are automatically replicated on new ...
2
votes
1
answer
3k
views
Architecting a Docker Swarm with persistent storage
I'm having a small amount of trouble pinning down exactly how I want to architect my Docker Swarm cluster. Currently it consists of:
1 MariaDB which will need to have persistent storage suitable for ...
2
votes
1
answer
363
views
Communication to containers not always possible
I have a couple of services running in a docker swarm on a single docker host. All services run in the same overlay network. These services all expose a different port on which a web server is ...
2
votes
1
answer
2k
views
Docker container does not register host name in docker-internal DNS
I use Docker to implement a Nextcloud service. For this, I use the official nextcloud-apache image, an Nginx reverse proxy, certbot, and MariaDB. Nothing special, really.
My docker instance runs in ...
2
votes
0
answers
257
views
Docker Swarm over IPSec VTI (Unifi site-to-site)
I have setup a Docker Swarm using 3 servers;
Master node
Home - local IP 192.168.178.250
Worker node 1
Remote - local IP 10.10.10.200
Worker node 2
Remote - local IP 10.10.10.250
Both sites have a ...
2
votes
1
answer
1k
views
How to query by service name with endpoint_mode=dnsrr from host network
I'm configuring some databases in a swarm cluster environment to use endpoint-mode = dnsrr
Documentation says (https://docs.docker.com/network/overlay/):
"A DNS query for the service name on the ...
2
votes
0
answers
853
views
Time-based rotation of Docker logs
We are running a stack of Docker Swarm services and, according to our Privacy Policy, we have to keep logs only for the last 6 months, but no older. I was trying to achieve it through different ...
2
votes
1
answer
195
views
How can you automate rolling upgrades of Docker Swarm nodes?
What's the typical process to roll out an upgrade of Docker and other OS updates to
a Docker Swarm cluster?
Since I want it rolled out, I was thinking of just doing a full Terraform build which will ...
2
votes
0
answers
1k
views
Not able to reach container running in a localhost docker swarm cluster
If that's interesting: OS: WIN10 (cygwin), code written in Java. I am using hyperv VMs as stated in this guide: this
I'd expect to reach the service in front of the container, which is running on ...
2
votes
1
answer
2k
views
Docker swarm, all containers get restarted
We are running Docker swarm mode in production, having 4 nodes, 3 of them share the manager status. We've noticed that once in a few days all the containers on one of the hosts are got restarted.
I'...
2
votes
1
answer
788
views
Am I missing a step in imagick php installation on Docker?
I have the following in a Dockerfile for a container running PHP5.x:
RUN apt-get install -y php5-imagick libmagickwand-dev libmagickcore-dev
RUN pecl install imagick
RUN echo "extension=`php -i | ...
2
votes
1
answer
283
views
Docker Bitbucket start stop at: c.a.s.i.hazelcast.HazelcastLifecycle Updating Hazelcast instance capabilities
Im trying to start a bitbucketserver. Im behind a proxy and I set the proxy configuration.
Every time I try to start the container, spring stop here:
c.a.s.i.hazelcast.HazelcastLifecycle Updating ...
2
votes
0
answers
309
views
Docker Swarm Mode network and load balancing doesn't work for my second service
My setup
Two nodes (2GB RAM, 2 vCPU) running docker engine (v17.06.1-ce) -- one swarm and one worker. Internal network bandwidth: 10Gbps. All files and databases are located outside this docker ...
1
vote
1
answer
3k
views
Status: Error response from daemon: node elk12 is ambiguous (2 matches found), Code: 1
I'm using following environment: Debian 9 with Docker CE:
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
...