Questions tagged [swarm]

Swarm is a web-based code review and collaboration tool for Perforce.

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:…
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?
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…
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:…
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…
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'…
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…
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…
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…
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…
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…
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…
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:…
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…
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…
Gavello
  • 1,069
  • 2
  • 11
  • 21
1
2 3
19 20