Questions tagged [docker-swarm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

How to run and network Docker Swarm inside Docker containers?

I'm trying to get docker swarm to run inside docker-compose where containers fill the role of nodes. For educational purposes, I'd like to be able to simulate a distributed swarm via docker-compose. ...
MrChadMWood's user avatar
0 votes
0 answers
13 views

Lingering services in a docker swarm

Say I have 50 maintenance services (as in they were created to create/delete another service's environment) that are lingering in my docker swarm (with 100 workers), as in, unused, replicas set to 0, ...
user2531336's user avatar
1 vote
0 answers
87 views

Issue with Docker Swarm, Likely Related to Networking

I'm facing difficulties while trying to use Docker Swarm on a VM. The same process worked perfectly on my local machine. I initialized Docker Swarm on the VM with the command: docker swarm init --...
Stackpllo's user avatar
0 votes
0 answers
40 views

Docker swarm multiple IPs for/in container

I started to play around with docker swarm (3 nodes). Recently i discovered that when a container is started (simple web server) with docker run --net=custom_overlay and not deployed as a service, the ...
Marc's user avatar
  • 331
0 votes
1 answer
430 views

MongoDB replicaset on docker swarm

I try to create a MongoDB replicaset in docker swarm services. So far so good. The problem im facing is, when a container stops or is moved to a other docker host, the cluster breaks and i cant ...
Marc's user avatar
  • 331
0 votes
1 answer
1k views

Docker Swarm - Containers can ping between nodes, cannot communicate over TCP ports

I'm setting up a new Docker Swarm mode cluster on three Linux machines - all brand new installations. All three machines have their firewalls and security modules (AppArmor) disabled and I could ...
PGEL's user avatar
  • 1
0 votes
0 answers
21 views

Can docker service replace docker run?

I'm converting my Docker hosts into Docker Swarm Nodes. Before this I always ran Docker hosts/containers moreorless like a [vSAN-less] vSphere cluster with as little storage as possible per host ...
Vita's user avatar
  • 19
1 vote
0 answers
312 views

Volume in Docker Swarm

Running a service create with volume mounting and replicas, the volume replicates to all worker nodes, no problem… however the synchronization of a file can only happen on a specific node, e.g. in the ...
user1159460's user avatar
0 votes
1 answer
163 views

What conditions does docker swarm use to redirect to a container?

I am using docker swarm with multiple notes and multiple instances of one docker image. As far as I know is there no influence about which container I interact with after a request. But how does the ...
Shraft's user avatar
  • 195
0 votes
0 answers
138 views

Docker swarm on multiple physical machines

I am deploying Hyperledger Fabric in a distributed environment using instructions from here. To achieve distributed setting Docker Swarm is required. One of my node is on the remote (which is my ...
Tabz's user avatar
  • 1
1 vote
1 answer
913 views

How do I access host network namespaces from inside a container deployed in a swarm?

I'd like to globally deploy a container on my swarm that applies some iptables rules to the host's networks. Specifically, I want to add rules to some overlay networks, which appear to be in a unique ...
Kayson's user avatar
  • 199
2 votes
0 answers
347 views

All published services within a docker swarm are unreachable while containers deployed normally work fine

I've run into an issue that seems similar too this one; https://forums.docker.com/t/cant-access-service-in-swarm/63876. My setup is a little bit different though and I haven't found a solution to my ...
AlexV's user avatar
  • 31
1 vote
1 answer
2k views

Docker-swarm usage of constraint for production and development

I am making docker-swarm project in local. For now, I have nodes by docker for simulating like these yml at the bottom, each has node01 node02. then now I want to use constraint deploy: replicas: ...
whitebear's user avatar
  • 705
0 votes
1 answer
289 views

port forwarding service -> container

I have one service which contains one container. in container there is django server with port 8000 open. And my service and container environment is here below docker container ls CONTAINER ID ...
whitebear's user avatar
  • 705
1 vote
1 answer
891 views

The simple way to access the docker-swarm inside node

I used expose in docker file and open the port. However still problem occurs though, @BMitch's answer ports is also the necessary solution in this case. For now, My first problem is solved. thank ...
whitebear's user avatar
  • 705
2 votes
1 answer
2k views

how should I set the volume of docker-swarm

I am planning to move docker-compose to docker-swarm for multi nodes. I have used docker-compose like this below version: '3' services: python: container_name: python build: ./python ...
whitebear's user avatar
  • 705
0 votes
1 answer
1k views

How should I set up volumes for multi-task database service in docker swarm?

I am new to Docker and I want to do mini-project with Docker Swarm. I built docker image with my Django app. In dockerfile I added project files, migrated all models, and then ran server. Now it is ...
aFku's user avatar
  • 3
1 vote
1 answer
1k views

VMWare Player fails after installing Docker

Not sure if this is just my issue, but after I have installed Docker on my Machine, when I try to launch my VM i get the following: "VMware Player can be run after disabling Device/Credential Guard"...
gds03's user avatar
  • 113
0 votes
1 answer
1k views

Change docker dns option on docker-compose

Problem: My container not find others hosts outside the swarm if ndots=0 on resolv.conf .I did some tests and if a remove or change ndots to 1 works. There's some way to delete or change the option ...
Levi's user avatar
  • 1
1 vote
1 answer
1k views

Is there a limit on Docker Swarm overlay networks' bandwidth?

I am running an eperiments which includes around 20 containers heavily communicating with each other through TCP, grpcs, etc. I use Docker stack command to start the containers on an overlay network. ...
Nima Afraz's user avatar
0 votes
1 answer
148 views

Docker SDK: Can't get accurate number of containers on Worker node from Leader node

I have a swarm with three Managers and one Worker. I also have a monitor_service that tries to use the Docker SDK for Python to get the actual number of containers in a tracked_service. This ...
Hana's user avatar
  • 1
1 vote
0 answers
193 views

Windows Container - Using the "--mount" option when creating a service seems to make the run fail

I have a Docker Swarm cluster with cloud VMs and when I'm trying to run a container with the "--mount" options instead of the "-v" option (because it doesn't exist on docker service create, I get the ...
krazdax5's user avatar
0 votes
1 answer
1k views

Docker Swarm deployment using Ansible. Passing hostvars as variables

I have a Problem with my Ansible Playbook for Docker Swarm deployment. This is my hosts file: --- all: hosts: ansible01: connection: local children: docker_swarm_manager_init: ...
Rick McClatchie's user avatar
1 vote
0 answers
358 views

Access IPv6-only networks from Docker Swarm

I have a question regarding IPv6 and Swarm. While I know Docker Swarm don't support IPv6 overlay networks, I was wondering if there was a way to access IPv6-only (no dual-stack so no IPv4 here) from a ...
Hakujou's user avatar
  • 51
1 vote
1 answer
150 views

Jenkins Swarm Slave

I have a question concerning Jenkins Build Server. When Jenkins slaves are tasked with building or compiling do the slaves need the necessary software installed on them? For example, if I am using an ...
wh0watme's user avatar
8 votes
2 answers
3k views

IPv6 does not work in Docker swarm?

I have an Ubuntu server 16.04 LTS running both IPv4 and IPv6 (dual-stack). This server is also running Docker. However, I have problems whenever I try to access the containers in the swarm, but only ...
Sitron_NO's user avatar
  • 113
1 vote
0 answers
598 views

Network placement of Docker managers and workers

I have a classic segmented network (a DMZ network and an internal LAN network with a router/firewall in between) and a Docker Swarm cluster compound by 3 nodes, all managers (Dm). The way we have ...
user3677920's user avatar
0 votes
1 answer
156 views

Invalid AWS role or insufficient permissions

I followed the Link Amazon Web Services to Docker Cloud article step-by-step and successfully generated a role ARN, but when I enter the ARN to link my docker cloud account, I'm getting the following ...
Andre Lombaard's user avatar
2 votes
1 answer
2k views

docker swarm with heterogenous nodes: limit by available resources?

I have a small docker swarm running in my office: one 40-core (128GB RAM) and two 8-core (16GB RAM each). When I deploy a service across the swarm, the jobs are running, but they are spread evenly ...
r2evans's user avatar
  • 540
1 vote
1 answer
1k views

When using docker swarm node in the overlay network I lost connectivity if connecting from another host

Created my service using the following command with docker: docker service create --mount type=bind,src=/tmp/postgres,dst=/var/lib/postgresql/data --name dev_db --network mynetwork -p 5432:5432 -d ...
VaTo's user avatar
  • 124
0 votes
0 answers
315 views

How to combine multiple applications with Docker?

Given the following setup of applications: App A: Docker-compose with a PostgreSQL image and a custom app image which uses that PostgreSQL image App B: Docker-compose with a PostgreSQL image and a ...
Davio's user avatar
  • 173
10 votes
1 answer
9k views

How do I properly resolve the IP of another container in a Docker Swarm? (DNS)

I'm playing with deploying services in a Docker Swarm. I'm having trouble letting a container consistently connect to a container on a different node. Let's say I'm building a GlusterFS pool; I need ...
Hubro's user avatar
  • 5,786