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.
97 questions
0
votes
0answers
5 views
Docker Network: Public IP for Swarm Scope
My goal is to serve different docker services using different IPs of my host:
10.10.10.40:8888 -> DockerSwarmService1
10.10.10.41:8888 -> DockerSwarmService2
Using normal bridge networks, that is ...
0
votes
0answers
20 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] ...
0
votes
0answers
28 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 ...
1
vote
0answers
57 views
+100
Docker UDP 'response'
Simply put, I have 2 containers for a service in a swarm mode. Container receives udp packets and sends them back to multiple clients, which ip's and ports are stored in db. Load-balancing: packets ...
1
vote
1answer
32 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'...
0
votes
0answers
10 views
How does actual available memory impact memory reservations?
Let's assume you have a single node cluster, with 2 CPUs and 1GB of RAM. The host OS is currently consuming 300MB RAM
You deploy a single 1-replica service in this cluster with a CPU reservation for ...
0
votes
0answers
9 views
Docker Swarm mesh ports limit only to worker nodes?
I am trying out current release of Docker Swarm as a solution for easy deployment of our application. One concern we have is manager nodes security, so we try to separate them as much as possible. And ...
0
votes
1answer
70 views
Docker hybrid swarm mesh routing not workingwindows
Windows Version: Server 2019
Docker for Windows Version: 18.09.0
Linux Version: Ubuntu 18.04.1 LTS
Linux Node Docker Version: 18.09.0
Issue: Ingress routing between nodes in hybrid (linux/windows) ...
0
votes
0answers
14 views
What is the best way to run scripts inside a container during deployment?
I often need to run commands inside the one of the containers (tasks) for a Docker Swarm service during deployment. One example of this is drush commands when deploying Drupal sites.
I build and ...
0
votes
2answers
129 views
ubuntu 18.04 docker swarm ipv6
Unfortunately I am not able to dump configs in here so I will attempt to describe.
I have a docker compose file, when I do a docker up on it things work fine.
However, when I start it with docker ...
0
votes
1answer
166 views
Reverse Proxy for Docker Swarm with Dynamic Ports
I have the following set up:
Docker swarm with 1 master and 2 workers.
Portainer service that manages the swarm.
A web app that is using nginx that runs on the master machine.
I want to use nginx ...
0
votes
0answers
16 views
Assign Swarm worker node to specific dns address
We want worker nodes in our swarm cluster to be assigned to specific dns addresses. We require a single container of a our backend to run on a single node using mode: global as opposed to replicas in ...
0
votes
1answer
129 views
Unable to use a Nexus Docker Registry in a Docker Swarm
I am trying to set up a Nexus repository for use by a Docker Swarm. However, I am seeing some weird behaviour and I am not sure if it is something I did or if it is a bug because it appears to be ...
0
votes
1answer
21 views
Can hosts join (i.e. be part of) more than one docker swarm?
It may sound a naive question, but I haven't found it stated anywhere:
is there a way to use the same machines to run different service stacks?
e.g. having
Stack A: service X, service Y
Stack B: ...
0
votes
0answers
257 views
Docker Swarm - Awaiting healthy status in classic node inventory
I get Awaiting healthy status in classic node inventory on a Windows Worker Node even though if I look from the Manager Node I see Status = Ready and Availability = Active
docker info looks ok with ...
0
votes
1answer
213 views
How to connect Docker Swarm services to an ordinary Docker network?
I have a single small VPS that has a variety of services on it, such as a WordPress installation and a few web apps. For some while I have run all the services on it as Docker containers. Since I have ...
1
vote
1answer
372 views
Deploying a php/laravel app with nginx in Docker swarm yields blank page and no errors
I have a Laravel application which I plan to deploy on a Docker Swarm.
The problem is that no matter what I do I get a blank page when calling localhost/index.php.
I'm using 2 separate services for:
...
0
votes
0answers
245 views
Slow docker overlay network between physical sites
Running a docker swarm on the same subnet interconnected on two physical networks via a fibre link. One of them is 10Gbps, and the other 1Gbps. As so:
--------------------------------
|
| Site A, ...
0
votes
1answer
186 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 ...
0
votes
0answers
162 views
Swarm Shared Volumes in Azure with Cloudstor
I'm facing some issues with Docker Swarm volumes using Cloudstore Driver (on azure), when we try to update a docker service after the successful creation of it, the update fails with:
""Error ...
1
vote
0answers
156 views
Docker cannot route OpenVPN clients to stack containers
I have a docker cluster with an OpenVPN container as an access server and a dns container as a forwarder. All containers are connected to a docker overlay network called vpn, but some run as a docker ...
0
votes
1answer
1k views
How to serve static contents through Traefik
I currently have a docker setup in which one nginx container serves static contents for a number of wordpress sites and proxies dynamic requests to the respective php-apache containers. When I deploy ...
0
votes
0answers
94 views
DigitalOcean swarm between regions
Im asking this on StackOverflow but maybe on ServerFault it will be better
I'm building docker swarm cluster for my backend and wanna join nodes from different regions for example manager on NY1 and ...
0
votes
1answer
356 views
Docker Error creating external connectivity network
i am trying to deploy a portainer/agent stack with the recommended docker compose configuration as suggested in the official documentation (https://portainer.readthedocs.io/en/stable/agent.html), and ...
1
vote
1answer
100 views
Docker Stack Deploy Does Not Work
i am trying to deploy a stack to my docker swarm but it does not work. i call the command
sudo docker stack deploy -c docker-compose.yml server-test
but it gives me the error
unsupported Compose ...
1
vote
1answer
41 views
if i scale up a service with a bind volume , Docker swarm will create a new bind volume in the second machine ?
I created a service in docker swarm with a bind volume in specific path.
If i scale up , will docker create a new service with a new bind volume (with same path) in the second machine?
0
votes
0answers
64 views
Docker Swarm Mesh not working on mixed Win7 / Linux cluster
I've got a mixed Docker Swarm Cluster with Linux machines and Win7 machines running VirtualBox via NAT (bridged option is not allowed).
Win7 Win7
| |
(port forwarding on ...
1
vote
0answers
65 views
docker node ls is showing only master node in Azure
I have created container environment in Azure. However, while running docker node ls, it is only showing LEADER node. but not showing agent node here.
Please help.
Thanks
0
votes
0answers
129 views
Elasticsearch docker containers in a swarm cannot connect to master until they fail and restart
I am trying to setup an ELK stack in a swarm. Just to start I have one of each node type. A master, client, ingest, and data.
The master node launches but each of the other nodes cannot find the ...
0
votes
1answer
68 views
Nagios Docker Stack Plugin works locally but not remote
I have a plugin to check the services running on docker.
I've gone through all of the suggestions from the dozens of posts I have seen here, but I'm still not able to get this to work.
The commands ...
0
votes
1answer
65 views
Differentiate docker swarm services by deployment target
I'm in the process of rolling out a High Availability docker swarm setup across multiple data centers, but I have a bit of a high-level question about configuration differentiation.
Say I have a ...
0
votes
0answers
11 views
How do you update managed plugins in docker across all nodes of a swarm?
To update plugins in Docker I use the following sequence
docker plugin disable -f $PLUGIN && \
docker plugin upgrade --grant-all-permissions $PLUGIN && \
docker plugin enable $PLUGIN
...
0
votes
0answers
18 views
Direct requests only to one container of the docker swarm service
Is it possible to cause docker load balancer which uses round robin to direct requests only one container of global docker service deployed on multiple hosts?
If this container goes down, requests ...
4
votes
1answer
1k 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 ...
1
vote
0answers
43 views
Overlay Network on Windows Server 2016 for WSFC + SQL Server HA
I'm trying to create an Overlay Network on Windows Server 2016 to create a separate address space for Windows Server Failover Clustering (WSFC). This cluster will eventually be used to host a SQL ...
0
votes
1answer
262 views
how docker handles high availability
Coming from a VMware environment, my through process was that,
Multiple Docker machines (swarm), mount the same NFS data stores
A container (e.g. Maria dB) is deployed on the Docker swarm
If a node ...
0
votes
0answers
94 views
How to close outgoing conections from docker container in swarm?
With stand alone containers I do smomething like that:
Create bridge with options com.docker.network.bridge.name and com.docker.network.bridge.enable_ip_masquerade like:
docker network create \
--...
0
votes
2answers
401 views
Zero Down Time deployment Node.js Docker
I have a React/Node.js application running on a single server using docker-compose. I'm trying to achieve a 0 downtime deployment for my react app. The process right now, does a webpack build (...
0
votes
0answers
56 views
A Docker container for each MySQL install
I'm looking to move the databases for my Wordpress sites to their own serve. My question is, for each site, should I run a separate docker container with it's own MySQL install, or is that overkill?
...
1
vote
1answer
432 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 "...
0
votes
1answer
85 views
How can I expose the docker tcp api to the private container network?
I'd like one of my containers to be able to control docker itself, the way I'm currently doing it is by simply exposing the socket internally, but I don't like this. What I'd really like to do is do ...
1
vote
0answers
142 views
How does load balancing / VIP works with overlay networks?
I'm trying to understand how the built-in Docker load balancing / VIP works with overlay networks. To better explain how I understand this, I've put together a diagram. My hope is that someone can ...
1
vote
1answer
926 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 ...
0
votes
1answer
316 views
Monitoring and restarting docker container (docker-compose)
I'm looking into ways of deploying, monitoring and restarting (in cause of failure) my docker containers with docker-compose, but I can't find anything else than using swarm.
Not that swarm is bad, ...
1
vote
1answer
977 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 ...
0
votes
0answers
657 views
Docker Issue - exit status 34
I am facing "exit status 34" while creating docker service. please suggest what is the issue.
Docker version : Docker version 17.09.1-ce, build 19e2cf6
Error Log :nsenter: failed to unshare ...
1
vote
1answer
27 views
Replicating folders in docker cluster
So I am quite new to docker, and in particular docker swarm.
I've just installed jenkins and I want it to work on all nodes regardless of it running with only one instance on one machine or 10 ...
0
votes
0answers
333 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
115 views
cant docker swarm on google cloud platform work
I am trying to configure a sample docker swarm to work on my microservices on google cloud platform. The problem is when I finished following the steps in pluralsight, I cant access the service from ...