Questions tagged [swarm]

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

320 questions
3
votes
2 answers

dockerswarm container linking : "tasks.service1" vs directly "service1"

When using a docker swarm, what is the difference between using "tasks.service1" or directly "service1" when curling/pinging ? Practical exemple : i start a docker swarm with a service on the same overlay network as follow : $> docker network create…
Raphael PICCOLO
  • 2,095
  • 1
  • 12
  • 18
3
votes
1 answer

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…
3
votes
0 answers

How to limit max number of containers running per node in docker swarm

I can set max_replicas_per_node in the docker-compose.yml file, but that limits the service, and if I'm running more than one service simultaneously, the number of containers running per node exceeds my limit. Is there any way to set…
3
votes
2 answers

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
  • 199
  • 1
  • 3
  • 12
3
votes
2 answers

Docker registry "error authorization context"

I'm running a private docker registry. It works with docker login followed by docker push or docker pull on both the manager as well as the workers. However if a new worker joins the swarm it can't pull the images if a service is placed onto it. So…
Alexander
  • 155
  • 13
3
votes
1 answer

Do Windows Containers Support Multi-node Swarm

I have setup docker manually on windows server 2016 by following this article https://docs.docker.com/ee/docker-ee/windows/docker-ee/ I have two windows server 2016 hyper-v machines sharing the same network and I added firewall rules to allow…
Mo Haidar
  • 3,748
  • 6
  • 37
  • 76
3
votes
0 answers

Docker Daemon is crashing and the docker services are not really up lately

Docker daemon got crashed after short span of time. Lately Docker services of stacks doesn't get properly up and resulted in app crash which only got fixed when i removed all the stacks and redeployed them. I'm running my whole Android app and Other…
3
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
  • 390
  • 1
  • 3
  • 20
3
votes
1 answer

Docker Swarm - How to set environment variables for tasks on various nodes

I'm new to docker swarm and am able to deploy my services on various nodes, however, the environment variables that are exported from a dockerfile ENTRYPOINT script are not setting for tasks that are deployed in the docker swarm…
3
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
  • 5,755
  • 6
  • 26
  • 63
3
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…
3
votes
1 answer

Passing --security-opt seccomp:filename.json to a container in Docker swarm

I need to pass a custom seccomp profile file to a container running on a Docker swarm. It can be easily done and it works fine with a standalone container using --security-opt option. The problem arises when you try to pass it to a container that is…
3
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
  • 31
  • 1
  • 4
3
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…
3
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
  • 71
  • 1
  • 8
1 2
3
21 22