Questions tagged [docker-swarm-mode]

Swarm mode refers to cluster management and orchestration features embedded in Docker Engine. When you initialize a new swarm (cluster) or join nodes to a swarm, the Docker Engine runs in swarm mode.

285 questions
3
votes
0 answers

How to solve MySQL database data disappear in Docker Swarm

When I use docker swarm with MySQL I met with problem (If docker container rerun mysql data will disappear) I spend a lot of time to search how to fix this problem, use volume store data and use glusterFs across host share volume but experiencing…
3
votes
1 answer

Is there a way to run each service in Docker swarm to run with different IAM roles

I want to spin up a docker swarm cluster on AWS. We plan to use IAM roles to define the access level of each service inside the docker swarm cluster. Is there a way to achieve this? I did go through below article but it was 4 years ago and I believe…
3
votes
0 answers

Docker, Is it possible to form a cluster (swarm mode) with linux and mac?

Per-container IP addressing is not possible The docker (Linux) bridge network is not reachable from the macOS host https://docs.docker.com/docker-for-mac/networking/ What does the above line mean? Does it mean you can't connect to docker on…
eugene
  • 39,839
  • 68
  • 255
  • 489
3
votes
0 answers

How to access the docker container of a different system in the swarm network via the manager?

I have five systems in the swarm network. One system is the manager of the network, and the rest are worker nodes. This is docker network information from docker network inspect docker-config_default: [ { "Name":…
raza sikander
  • 143
  • 13
3
votes
1 answer

Docker Swarm with Traefik: containers are up but getting 404

I am struggling to get a Docker swarm stack set up using traefik. I decided to try traefik as an alternative to jwolder/nginx-proxy, as unfortunately the latter does not seem to support Docker swrarm mode. But I'm finding traefik to be a problem…
ChrisM
  • 2,128
  • 1
  • 23
  • 41
3
votes
1 answer

How to apply cgroup parent in docker swarm?

Docker swarm doesn't support cgroup_parent according to it's documentation: https://docs.docker.com/compose/compose-file/#cgroup_parent I need to set resource constrains for the whole set of docker containers running on a particular host(not just…
3
votes
1 answer

Deploying couchbase in a docker swarm environment

I'm trying to deploy couchbase community edition in a docker swarm environment. I followed the steps suggested by Arun Gupta, though I'm not sure if a master-worker model is desired as Couchbase doesn't have the notion of master/slave model.…
donnie
  • 2,981
  • 2
  • 16
  • 24
3
votes
2 answers

Docker swarm mode | telnet: can't connect to remote host : Host is unreachable

On AWS EC2, trying to connect to a private RDS instance from a Swarm container. It fails from within the container but works well from the host. I have a single master and node setup - bash-4.3# telnet…
vivekyad4v
  • 13,321
  • 4
  • 55
  • 63
3
votes
3 answers

getting Detected task failure for some images while creating docker service

I am trying to create docker swarm service, but I am getting some strange behavior: For some images, it is successful and for some, I am getting an error: docker service create nginx 89t21k3udf007pvl2ucvmdp9l overall progress: 1 out of 1 tasks 1/1:…
stackjohnny
  • 645
  • 3
  • 7
  • 22
3
votes
2 answers

Defining docker registry inside docker-compose to use in a swarm with stack deploy

For all the experienced DevOps guys, I have a question about deploying a private registry as part of a stack in a swarm. It seems from docker documentation that registry needs to be first defined and exposed (and also secured) and images pushed into…
3
votes
1 answer

docker swarm service name

I'm new to swarm and trying to figure how can I set service name in order to access containers from different nodes. I'm using docker-compose file: version: '3.1' services: service-ui: image: service-ui:release deploy: placement: …
Oren Ashkenazy
  • 271
  • 6
  • 19
3
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]…
3
votes
1 answer

Traefik cluster fails to find keys in Consul

I've decided to follow this guide and I've encountered many problems. First of all specifying traefik command in command was required or else of I've got error that entrypoint.sh can't find command storedata, and yes > yaml syntax is valid way to…
holms
  • 9,112
  • 14
  • 65
  • 95
3
votes
1 answer

Run docker swarm mode on windows 10 using multiple hosts

I'm running Windows 10 with the latest updates installed. I'm trying to set up a swarm using multiple physical hosts running docker Linux containers on windows host. When I'm running docker swarm init --advertise-addr 10.154.26.150 --listen-addr…
3
votes
0 answers

Can't connect to my swarm

I imported my swarm to docker cloud. I have 2 machines in the cloud and the third machine is mine. I want to connect the swarm (meaning - running commands from one of the managers in my machine - worker node - currect me if I'm wrong). Connect to…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171