Swarm is a web-based code review and collaboration tool for Perforce.
Questions tagged [swarm]
296 questions
12
votes
1 answer
Static IP address doesn't work in docker compose v3
From the official document, the static ip address should work with docker compose v3 + docker swarm. But I cannot make it work.
This is my docker compose yaml:
version: '3'
networks:
test:
ipam:
driver: default
config:
- subnet:…
![](../../users/profiles/3207819.webp)
PunCha
- 229
- 2
- 9
12
votes
2 answers
What is the difference between using Docker Machine with Swarm and using Swarm through the Docker daemon?
What exactly is the difference between having multiple docker machines in a swarm (a manager and many nodes) and having multiple replicas of a docker service in a swarm?
![](../../users/profiles/4838830.webp)
Alexander George
- 832
- 7
- 20
11
votes
3 answers
Best practices to promote docker images across dev,qa,uat and production
Our application is containerized and using docker swarm as an orchestrator. I wanted to understand how do we promote docker images from dev, qa, uat and to production. For example, if I have an image created in dev as test:10 (10 is the build number…
![](../../users/profiles/8388216.webp)
arun Kaliappan
- 111
- 1
- 4
8
votes
3 answers
Increase /dev/shm in docker container in swarm environment (docker stack deploy)
I know is possible to increase default 64MB /dev/shm in docker container from docker run or docker compose. As example this works in our local development machines.
version: '3.5'
services:
postgres:
image: postgres
shm_size:…
![](../../users/profiles/1222923.webp)
Gonzalo Cao
- 1,781
- 1
- 17
- 16
8
votes
1 answer
Rancher & Docker Failed to get ping from agent
I am facing another issue with Rancher & Docker.
I've installed the Rancher Server and then, in another server, a Rancher Agent using the command provided from Rancher Server.
I can see the node in the host section but every 5 minutes rancher…
![](../../users/profiles/599012.webp)
devops85
- 201
- 1
- 9
6
votes
1 answer
Wildfly-Swarm and connection to external activemq via resource adapter: WFLYCTL0412
So I've already spent considerable time on this, but now have come to a point where I'm completely at my wits end...
The requirement:
I'm trying to connect a wildfly 10.1.0 based message driven bean to an external activemq 5.15.0 server (the 'old'…
![](../../users/profiles/7219132.webp)
bahkauv
- 131
- 7
5
votes
3 answers
Disable external node service accessibility in docker swarm
I have a docker swarm with 2 nodes and each node run 2 services in global mode so each node have 2 services running inside it. My problem is how to force ubuntu service in node1 only connect to mysql service in node1 and dont use round-robin method…
![](../../users/profiles/1550482.webp)
Kibo
- 695
- 1
- 14
- 27
5
votes
0 answers
How to fix “unexpected directory layout” error when Installing go-ethereum?
All, I hope this question belongs here.
I am following a Blockgeeks tutorial, trying to set up my environment for Ethereum blockchain development. I have basically gotten to the final step, installing swarm, but I am receiving an error that seems to…
![](../../users/profiles/10739663.webp)
dillon.harless
- 387
- 2
- 11
5
votes
1 answer
Docker socket crash after stack up
I trying to deploy docker stack, that includes my development environment. But in random cases I have next error:
> failed to create service < service_name >: Cannot connect to the
> Docker daemon at unix:///var/run/docker.sock. Is the docker…
![](../../users/profiles/949005.webp)
Sergey Bezugliy
- 500
- 5
- 18
5
votes
1 answer
Wrong IP address in docker swarm service
I have very weird problem:
I have the swarm cluster and one of my service have wrong ip:
$ docker service inspect nginx_backend | grep Addr
"Addr": "10.0.0.107/24"
From any container in the cluster:
/ # ping nginx_backend
PING…
![](../../users/profiles/5833746.webp)
Kealman
- 93
- 1
- 7
5
votes
0 answers
Docker swarm ignores iptables=false flag
I'm trying to setup a docker swarm, but I want to use ufw to create my own network rules. I've tried both putting --iptables=false in the docker service file, and also putting { "iptables": false } in /etc/docker/daemon.json.
However, whenever I…
![](../../users/profiles/716095.webp)
Maarten van Beek
- 123
- 7
5
votes
2 answers
can not use user-defined bridge in swarm compose yaml file
I learned from docker documentation that I can not use docker DNS to find containers using their hostnames without utilizing user-defined bridge network. I created one using the command:
docker network create --driver=overlay --subnet=172.22.0.0/16…
![](../../users/profiles/1762447.webp)
tkyass
- 2,276
- 5
- 30
- 47
5
votes
4 answers
Alpine Linux docker set hostname
I'm using lwieske/java-8:server-jre-8u121-slim with Alpine Linux
I'd like to set hostname from a text file to be seen globally (for all shells)
/ # env
HOSTNAME=2fa4a43a975c
/ # cat /etc/afile
something
/ # hostname -F /etc/afile
hostname:…
![](../../users/profiles/8131727.webp)
madi
- 150
- 1
- 12
5
votes
2 answers
Kubernetes node Device port (USB) mapping to POD? Or Swarm service --device mapping
Is it possible to map, the device port(USB port) of a worker node, to a POD?
Similar to docker create --device=/dev/ttyACM0:/dev/ttyACM0
Is it possible? I checked the refence doc, but could not find anything.
In Docker service, is it possible to map…
![](../../users/profiles/6513431.webp)
jisan
- 123
- 1
- 5
5
votes
2 answers
Docker Swarm Overlay Network Communication
I'm trying to setup a Docker Swarm where containers comunicate using Overlay Network but I can make it work
I'm simulating the infrastructure using 4 Raspberry Pi 3 Boards using HypriotOS 1.0.0 Linux distribution which include Docker Engine 1.12.1…
![](../../users/profiles/1509414.webp)
Gavello
- 1,069
- 2
- 11
- 21