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

On stack deploy, unable to pin image to digest: unauthorized: the client does not have permission for manifest

I'm running a Docker stack using a custom image which I have pushed to an Artifactory repository. docker-compose.yml: version: "3" services: app: image: repo.example.com/my_image:latest I can pull the image fine, and I can deploy the stack…
jpyams
  • 4,030
  • 9
  • 41
  • 66
7
votes
1 answer

Use multiple specific network interfaces with docker swarm

I am using docker swarm to deploy an on-premise third party application. The machine I am deploying on is running RHEL 7.6 and has two network interfaces. The users will interact with the application from eth0, but internal communication with their…
user1943992
  • 222
  • 3
  • 11
7
votes
0 answers

Creation order of network<->service in docker stack

In docker-sompose: services: srvA: (..) networks: - backend srvB: (..) networks: - frontend networks: frontend: driver: overlay backend: driver: overlay when I start docker stack deploy -c docker-compose.yml…
mCs
  • 2,591
  • 6
  • 39
  • 66
7
votes
1 answer

Docker volume in swarm

Can someone confirm this for me. When running a service in docker with swarm, the docker volume using the local driver will be created on the same node as the running container for a service. If a service was spawning tasks on 2 different nodes,…
Loïc Faure-Lacroix
  • 13,220
  • 6
  • 67
  • 99
7
votes
2 answers

NGINX requires restart when service reset

We use NGINX in docker swarm, as a reverse proxy. NGINX sits within the overlay network and relays external requests on to the relevant swarm service. However we have an issue, where every time we restart / update or otherwise take down a swarm…
Paul Grimshaw
  • 19,894
  • 6
  • 40
  • 59
7
votes
1 answer

Fail to start tasks/services in Docker Swarm: hnsCall failed in Win32: The parameter is incorrect

I am trying the Docker Get Started tutorial, Part 3 (Services). So the part where I need to init a swarm and deploy a stack, all my service status is rejected: The full error (using --no-trunc) is: hnsCall failed in Win32: The parameter is…
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
7
votes
1 answer

Orphaned Tasks in Docker Swarm after removal of failed node

Last week I had to remove a failed node from my Docker Swarm Cluster, leaving some tasks that ran on that node in desired state "Remove". Even after deleting the stack and recreating it with the same name, docker stack ps stackname still shows…
zeisi
  • 5,520
  • 2
  • 22
  • 21
7
votes
1 answer

How to restart a Docker service in global mode (non-replicated)?

In Docker Swarm mode, how can I restart a single global service? Is it even possible? I know you can scale replicated services to zero then back to 1+, but there doesn't appear to be any documentation on how to have the same effect with global…
Nick
  • 4,901
  • 40
  • 61
7
votes
1 answer

docker swarm services stuck in preparing

I have a swarm stack deployed and I removed couple services from the stack and tried to deploy them again. these services are showing with desired state remove and current state preparing .. also their name got changed from the custom service name…
tkyass
  • 2,968
  • 8
  • 38
  • 57
7
votes
1 answer

How to make HDFS work in docker swarm

I have troubles to make my HDFS setup work in docker swarm. To understand the problem I've reduced my setup to the minimum : 1 physical machine 1 namenode 1 datanode This setup is working fine with docker-compose, but it fails with docker-swarm,…
Loic
  • 3,310
  • 4
  • 25
  • 43
7
votes
0 answers

Docker container not inheriting dns settings from host

For some reason a Docker Container I have created as part of a stack using a Docker Compose file in Docker Swarm does not have the correct networking settings. Reading the Docker documentation about networking here I see that: By default, a…
Mathyn
  • 2,436
  • 2
  • 21
  • 33
7
votes
1 answer

Stack service containers dynamic hostname

I am migrating away from Docker Cloud to pure Docker Swarm setup. One thing that I am missing is the nice way of how the containers got the hostname set as $SERVICE_NAME-$SLOT_NUMBER. Is it possible to dynamically set the hostname/container name in…
pjotr_dolphin
  • 1,207
  • 9
  • 34
7
votes
1 answer

Docker service laravel app not running when not running in manager node

docker-compose.yml This is my docker-compose file used to deploy the service in multiple instance using the docker-stack. As you can see the the app service which is the laravel running in 2 nodes and database (mysql) in one of the nodes. Full Code…
7
votes
3 answers

no suitable node - unable to deploy image using docker service

I have a docker swarm based on raspberry pi 3. I have 3 nodes. I have created an image on my laptop and pushed that to the docker registry. If I try to start the image on a node in the swarm using docker run it works as expected. docker run -ti…
Henrik Andersen
  • 91
  • 1
  • 1
  • 7
7
votes
1 answer

Prometheus dns service discovery in docker swarm

I'm searching for some monitor & alert solutions for my services. I found following nice related works. Prometheus monitoring for docker swarm Monitoring a docker swarm cluster with Prometheus Both works use dns service discovery to monitor…
He Bai
  • 305
  • 4
  • 12