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
1 answer

How to run a swarm in Docker?

I'm new to Docker and I'm doing the Get-Started part of the documentation, but I got stuck in step 4, I do not make mistakes when doing this step, but when I enter the ip 192.168.99.100 it does not show me anything. I hope you can help me THANK…
Angel
  • 71
  • 5
1
vote
0 answers

Why I can't expose portainer agent port 9001?

I'm trying to expose portainer agent port 9001 on a swarm cluster in order to reach it from an external portainer, it is deployed in 'global' mode. Following docker-compose file works : version: "3.2" services: agent: image:…
Nelson G.
  • 5,145
  • 4
  • 43
  • 54
1
vote
0 answers

How do I make nginx running as a docker service accessible from the host?

Not for production. I was able to run nginx in a container like so: # docker run --rm -itp 4000:80 nginx # curl localhost:4000 But with docker compose it doesn't work: docker-compose.yml: version: '3' services: nginx: …
x-yuri
  • 16,722
  • 15
  • 114
  • 161
1
vote
1 answer

Provide deeper swarm nodes-related metrics

I would like to be able to be able to monitor more accurately the manager nodes within a swarm cluster. I expect (eg) such a metrics :…
Marvin
  • 1,650
  • 4
  • 19
  • 41
1
vote
0 answers

Base docker healthcheck on STDOUT logs

I've got a script that outputs logs to STDOUT. I want to monitor this, and if x seconds passes without log output, the healthcheck should fail and the container should restart. I've got something that I feel should work (using strace), but it's not.…
Joe
  • 273
  • 5
  • 17
1
vote
0 answers

How configure portainer agent?

I've just used the example from this documentation(https://media.readthedocs.org/pdf/portainer/1.19.1/portainer.pdf) to configure the portainer's agent but keep receiving the error "Unable to proxy the request via the Docker socket". In this case…
bruno1cruz
  • 31
  • 2
  • 7
1
vote
1 answer

Docker image is created, however container fails to launch on instantiating the chaincode in Hyperledger Fabric using Java-SDK

On instantiating the chaincode using java-sdk , the docker image for the container is created. However the chaincode container fails to launch with below logs. 2018-11-08 07:05:20.774 UTC [shim] userChaincodeStreamGetter -> ERRO 001 context deadline…
anjy
  • 331
  • 3
  • 16
1
vote
2 answers

Push Docker Image To Swarm

I am very new about docker and swarm. I have two virtual server lets say A and B in my local intranet. I configured docker swarm A as manager and B is worker. I have another machine lets say C which has my application's source code and dockerfile. I…
Alper Gunay
  • 83
  • 2
  • 5
1
vote
1 answer

private registry image as docker swarm service

First of all, to mention I checked multiple questions in Stackoverflow but the requirement was somewhat different or the solution offered was not working in my case, so thought of creating a new question. I am using Local Registry and able to…
stackjohnny
  • 645
  • 3
  • 7
  • 22
1
vote
0 answers

Why reverse-proxy for persistent session in docker container?

I am new to docker and dockerizing an existing application. The problem that I faced is that as I have multiple containers for the same application, the session variables will not be consistent across containers. So, on searching on the internet, I…
Swastik Roy
  • 198
  • 1
  • 13
1
vote
1 answer

Docker shows service logs only after service update

We run our services in swarm mode. One of the services is an MQ subscriber instance of a Rails application. It receives messages once a day and processes them. Docker version is 17.06.2-ce, build cec0b72 The problem is that there're no logs shown in…
1
vote
1 answer

Endpoint Paths for APIs inside Docker and Kubernetes

I am newbie on Docker and Kubernetes. And now I am developing Restful APIs which later be deployed to Docker containers in a Kubernetes cluster. How the path of the endpoints will be changed? I have heard that Docker-Swarm and Kubernetes add some…
user217648
  • 3,338
  • 9
  • 37
  • 61
1
vote
0 answers

RavenDB on docker behind traefik

I'm trying to install Secured RavenDB on docker swarm with Traefik as reserved proxy. But, it's none of successful. I can make the installation work to the last page. But at state Restart Server, it doesn't work anymore. The page show up: Internal…
Cephas PAD
  • 82
  • 9
1
vote
0 answers

How to increase the size of a docker volume using the compose file

I have a docker stack with a few services with their data stored on an external volume. The volume driver is the rexray/dobs (for digitalocean block spaces) The definition for the volume is like so version: "3" services: …
Ayo Makanjuola
  • 608
  • 7
  • 14
1
vote
0 answers

Provide server-side metrics on APIs usage

I have service deployed through a stack on a swarm. Let's say : someStack : SomeServer : ... myApplication: .... Above this, there is a traefik server, that allows me to call various services, but also to map different urls to…
Marvin
  • 1,650
  • 4
  • 19
  • 41