Questions tagged [swarm]

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

296 questions
2
votes
0 answers

Service mesh with consul and docker swarm EE

I'm new in service mesh with Consul. I found a lot of documentation about using Consul and Envoy for service mesh in K8S but I'm not finding much documentation about using it on docker swarm (Enterprise Edition). My question is: is it possible to…
2
votes
1 answer

Cannot use existing network in Compose: ERROR: Network declared as external, but could not be found

I'm trying to create a service that must join the existing stack, so I force the compose to use the same network. Surely, my network is persists docker network ls NETWORK ID NAME DRIVER SCOPE …
BTH.S3
  • 137
  • 1
  • 7
2
votes
0 answers

Deploy Gitlab Runner stack with docker swarm

I'm trying to deploy a gitlab runner stack in docker-compose above: version: '3.8' services: dind: image: docker:stable deploy: mode: replicated placement: constraints: - "node.role==worker" …
2
votes
0 answers

Docker 19.03.12 : The swarm does not have a leader aferter swarm upgrade

Some strange troubleshouting with docker since laste update. Can you help me about this ? It’s is not my firstr upgrade of package and this case have been reproduice on a freshnew stack. Updgraded from 18.09.9 to 19.03.12 OS : Ubuntu 16.04…
adenathium
  • 21
  • 1
2
votes
1 answer

Traefik 2.0 "port is missing" for internal dashboard

I'm trying to use traefik 2.0 (!) in docker swarm mode. This is my stack: version: '3.7' services: traefik: image: traefik:latest ports: - 80:80 - 443:443 deploy: replicas: 1 placement: constraints: …
xsrf
  • 400
  • 2
  • 15
2
votes
0 answers

docker swarm service, pass args to a single replica in the swarm

I need to deploy a container that receives a specific running args, say a target ip to run a bash script against it. I can get the container up and running on a single docker host and everything works just fine. Since the load of the script is…
2
votes
3 answers

Custom class using nested dictionary Python

I have a problem when adding value inside the nested dictionary using the same keys and the value is always shown the same value, The fact is, i want update the value event the keys is same. This algorithm is the basic of Artificial Fish Swarm…
Subhanshuja
  • 178
  • 1
  • 2
  • 16
2
votes
1 answer

Can't push/pull from private registry when run in swarm

When I'm running docker registry in swarm: docker service create \ --name docker-registry \ --mount type=bind,src=/some/path,dst=/var/lib/registry \ -e REGISTRY_HTTP_ADDR=0.0.0.0:5000 \ --publish 5000:5000 \ --replicas 2 \ …
Taz
  • 4,945
  • 2
  • 20
  • 45
2
votes
1 answer

What steps does docker swarm take when doing a rolling update with start-first?

When docker swarm does a rolling update with stop-first on multiple running container instances, it takes -among others- the following steps in order for each container in a row: Remove the container from its internal load balancer Send a SIGTERM…
2
votes
0 answers

docker service service updates stuck in updating status

We have swarm services running across two app servers. When we update the images of the services it often results in it not being rolled out to both of the servers. The output is below, it has been trying to update for 16 hours, is there anyway to…
Mason
  • 21
  • 3
2
votes
1 answer

ProxyPass/ProxyPassReverse with Traefik

I would like to change an apache/tomcat ProxyPass configuration to a traefik/tomcat configuration in Docker Swarm. I've try some explained here https://docs.traefik.io/basics/#frontends, but it doesn't work: Apache config: ProxyPass /sso…
2
votes
1 answer

able to scale container with global mode in docker?

I have three swarm nodes. Deployed containerized service with mode "global" through docker swarm. Later, add one more swarm node to current to be four nodes. How can i deploy the container service to new added nodes? The command(docker service…
TedJung
  • 61
  • 8
2
votes
0 answers

Docker swarm can't resolve service name on other nodes

I had a small working docker swarm on google cloud platform. There are just two nodes, one with nginx and php, the other one with mysql. Right now it seems that from master node I can't connect to the mysql on the worker node. SQLSTATE[HY000] [2002]…
2
votes
0 answers

Docker swarm redis connectivity issue

I have following docker-compose.yml redis config. version: '3.5' services: db: image: redis:latest command: redis-server --bind 0.0.0.0 --appendonly yes --protected-mode no ports: - target: 6379 published: 6379 …
Alex T
  • 2,919
  • 3
  • 22
  • 38
2
votes
2 answers

docker swarm how to get all container ip using dns?

I create two service, service-a(3 replies) and service-b(5 replies). They are in micro overlay network. I want to get all container ip from dns. # docker run --rm --network micro alpine nslookup service-a But only get one ip. Is there has anyway to…
XGHeaven
  • 1,326
  • 1
  • 10
  • 15
1 2
3
19 20