Questions tagged [docker-swarm]

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual host.

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual host.

Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Flynn, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.

Like other Docker projects, Swarm follows the "batteries included but removable" principle. It ships with a set of simple scheduling backends out of the box, and as initial development settles, an API will be developed to enable pluggable backends. The goal is to provide a smooth out-of-the-box experience for simple use cases, and allow swapping in more powerful backends, like Mesos, for large scale production deployments.

3165 questions
1
vote
2 answers

How to get container's ip on bridge network

I am deploying a mariadb cluster like this. (host) $ cat docker-compose.yaml version: '3.6' services: parent: image: erkules/galera command: ["--wsrep-cluster-name=local-test", "--wsrep-cluster-address=gcomm://"] …
rnbguy
  • 1,369
  • 1
  • 10
  • 28
1
vote
1 answer

Hyperledger Composer - Docker Swarm

I've been experimenting with Hyperledger Composer and with the official multi org tutorial. I was successful in modifying the given demo, adding a third organisation and finally installing my own bna. The next step was to fully understand how to…
1
vote
0 answers

Communication between Spark and remote HDFS

I have a docker swarm cluster. In this cluster, we have spark(1 master and 1 worker) and hadoop(1 namenode and 1 datanode) containers. I created the containers using following docker-compose file: version: "3" services: master: image:…
ugur
  • 400
  • 6
  • 20
1
vote
1 answer

Swarm - when update of service is correctly done

Let's look at following command: docker service update --detach=true --force service_name Let's consider log of this operation: service_name overall progress: 1 out of 1 tasks 1/1: running [==================================================>]…
Developer
  • 23
  • 3
1
vote
1 answer

Installing SSL cert in Docker Swarm

I am using docker stack to deploy one service in multiple digital ocean droplets (replica > 1), one container per droplet. This is my app backend service. I want to have a SSL cert & private key installed (and hopefully automatically renewed) so I…
Jimmy Chu
  • 972
  • 8
  • 27
1
vote
1 answer

Should I constrain swarm services to worker nodes?

Say I have a docker swarm with separate workers and managers. Do I have to specify a placement constraint to ensure that a given service only runs on a worker node? Like in this docker-compose file: version "3.1" services: foo: image:…
RQDQ
  • 15,461
  • 2
  • 32
  • 59
1
vote
1 answer

Can I isolate pair of services in docker swarm?

I am building a web app using docker swarm. Manager machine will have database and load balancer. Next I have two pieces of software: tornado server, which acts as middle layer between user and node server. They should always be served together.…
Paweł
  • 81
  • 9
1
vote
1 answer

Scraping traefik metrics from prometheus

I am trying to scrape traefik metrics from prometheus. Traefik (latest) is hosted as a service on a swarm cluster, and the prometheus metrics are activated. The matching endpoint is 10.200.1.1:8088/metrics When I reach my endpoint from the…
Marvin
  • 1,650
  • 4
  • 19
  • 41
1
vote
1 answer

How to collect metrics (CPU, Memory, I/O) from docker cluster node container's?

I have a manger node and two workers node connected via docker swarm. When i use docker API "https://docs.docker.com/engine/api/v1.37/" i can able to get (monitor) current node (manager node) container metrics like (CPU, memory uasge and I/O bytes),…
1
vote
2 answers

Docker query on containerizing

Our requirement is to create a container for legacy apps over docker. We don't have the operating system support/application server support available, nor do we have knowledge to build them from scratch. But we have a physical instance of the legacy…
Rakshu
  • 11
  • 4
1
vote
0 answers

Running docker stack & swarm in production on a single node with autostart?

How can i run a docker stack (from a docker-compose.yml) on a single docker swarm node which automatically starts on system reboots? I am using docker-compose to compose my application of multiple services and then use docker stack deploy to deploy…
Herbert Poul
  • 4,512
  • 2
  • 31
  • 48
1
vote
1 answer

Docker Swarm / TLS 1.2 / External Services

What we're looking to do is be able to communicate with an existing HTTPS/TLS 1.2 service (outside of swarm) from our service deployed within swarm. The service running inside swarm has been migrated from running within a JBoss instance which…
byte-crunch
  • 271
  • 2
  • 13
1
vote
1 answer

Docker Swarm create service cannot pull from remote repository

I have created a two instance docker swarm on Google Compute Engine. Docker version 18.06.1-ce, build e68fc7a on Ubuntu 18.04.1 LTS I created a service account: gcloud iam service-accounts create ${KEY_NAME} --display-name…
1
vote
3 answers

can i assign cores to docker swarm containers?

I'm deploying a stack file with couple services (each service has only 1 replica) and I need to limit each container to use a different subset of CPU cores. I found online here that cpuset is not supported with swarm's stack file (compose v3). I…
tkyass
  • 2,968
  • 8
  • 38
  • 57
1
vote
1 answer

How to ensure a service "global" is run on all nodes?

I had a 3 nodes SWARM cluster (1 master + 2 workers), on this cluster many services are running and two of them are in "global" mode. Once I added a third worker, only one of the two global services is on new node (3/3 -> 4/4) but the other one do…
1 2 3
99
100