Questions tagged [docker-swarm]
32 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
- 6,016
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
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
2
votes
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
- 755
2
votes
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…
gds03
- 123
2
votes
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
- 580
1
vote
0 answers
Why does "docker swarm service create" without network does not use docker_gwbridge as expected?
Why does:
docker service create --name alp alpine apk update
Use docker0 interface instead docker_gwbridge as described in the swarm docs?
Is this known / expected / broken?
Long version
I am hardening a docker swarm and stumbled upon an oddity:
If…
Samuel
- 462
1
vote
0 answers
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 --advertise-addr MY_IP_HERE
Then:
docker stack deploy…
Stackpllo
- 11
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…
user1159460
- 13
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
- 219
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
- 755
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
- 755
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
- 113
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
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