Questions tagged [docker-swarm]

29 questions
10
votes
1 answer

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 to open a terminal in each container and add the…
Hubro
  • 5,716
  • 14
  • 61
  • 87
8
votes
2 answers

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 over IPv6. Here is my steps: I have created an…
Sitron_NO
  • 113
  • 1
  • 6
2
votes
0 answers

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 problem yet. The minimal, reproducible…
AlexV
  • 31
  • 4
1
vote
0 answers

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 swarm node1 when modifying the file in the host…
1
vote
1 answer

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 namespace per overlay network. Here is my…
Kayson
  • 199
  • 10
1
vote
1 answer

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: 1 placement: constraints: [node.label.type ==…
whitebear
  • 655
  • 4
  • 12
  • 26
1
vote
1 answer

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 you very much. Latest update. I logined manager and…
whitebear
  • 655
  • 4
  • 12
  • 26
1
vote
1 answer

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 command: uwsgi --socket :8001 --module myapp.wsgi…
whitebear
  • 655
  • 4
  • 12
  • 26
1
vote
1 answer

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" the procedures to fix this, break Docker, and…
1
vote
1 answer

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. However, I have a feeling that there is a…
Nima Afraz
  • 13
  • 1
  • 4
1
vote
0 answers

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 following error: "starting container failed:…
krazdax5
  • 11
  • 1
1
vote
0 answers

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 Docker Swarm cluster. I a simple cluster with 3…
Hakujou
  • 51
  • 1
  • 5
1
vote
1 answer

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 IAR ARM compiler do I need this software…
wh0watme
  • 13
  • 2
1
vote
0 answers

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 currently placed the docker manager nodes is this…
1
vote
1 answer

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 without regard to per-machine capacity. I started…
r2evans
  • 530
  • 1
  • 4
  • 21
1
2