A Docker stack is a set of related services which share volumes, networks and other dependencies, and can be orchestrated and scaled together. "docker stack" is the command from the Docker CLI. Stacks are configured with docker-compose files but a docker stack is complete independent of docker compose.
Questions tagged [docker-stack]
187 questions
1
vote
1 answer
Execute the same entrypoint script on docker container restart
Is there any way to re-execute the entrypoint script when a docker container/service restarts after failure?
I am deploying using docker stack deploy -c docker-compose.yaml abcstack.
This compose file contains multiple services.

QO23
- 143
- 1
- 8
1
vote
1 answer
docker service logs empty (?) when deployed in stack on AWS
I've got a docker-compose.yml which, when deployed locally as either using stack or compose yields 3 services (parse-server, mongodb, web-app in nginx). I can get logs from those services using docker service logs .
Using the same…

Darren Black
- 1,030
- 1
- 9
- 28
1
vote
1 answer
Hyperledger-fabric not working with docker swarm
I 'm using the Fabric 1.1 alpha release and trying to set it up using docker swarm. I 'm using docker compose files with docker stack to deploy the containers.
The issue I 'm having is my chaincode listening port which is 7052 hardcoded somewhere…

Ashish Mishra
- 119
- 9
1
vote
1 answer
Docker Swarm - Using mongo service only in local enviroment
So i learned that you can use the same docker-compose file for both local development with docker-machine and for production environment with docker swarm, which is great think, you can also share the same docker-compose file and add specific…

Roy Hershko
- 123
- 5
1
vote
2 answers
Attached docker stack deploy
The docker-compose utility is attached to the terminal by default allowing you to see that's happening with all of your containers which is very convenient for development. Does the docker stack deploy command support something like this when the…

super.t
- 2,526
- 7
- 32
- 51
1
vote
1 answer
How to disable network generation on docker stack deploy
I am deploying a compose file onto the UCP via:
docker stack deploy -c docker-compose.yml custom-stack-name
In the end I want to deploy multiple compose files (each compose file describes the setup for a separate microservice) onto one docker…

Igor L.
- 3,159
- 7
- 40
- 61
1
vote
0 answers
docker stack deploy is not working properly but docker-compose is working properly
I am new to docker swarm and docker compose.
I built an application that uses a nginx and flask docker containers. nginx acts as a reverse proxy.
when I am building this entire application using docker compose everything works fine
my…

Shivanand THANGALAPALLI
- 139
- 1
- 9
1
vote
1 answer
Docker stack deploy in windows
i have some questions in docker stack windows.
Can we enable docker stack in windows 2016. Is it fully supported.
if yes, how can we enable. how we can automate creating swarm cluster using this file.
i have searched google but can't find related…

karthick
- 175
- 1
- 7
1
vote
0 answers
Remote script execute causes Docker stack deploy to fail
For testing purposes, I have a three line script (shebang not shown):
docker stack rm MYSTACK
sleep 30
docker stack deploy --compose-file /full/path/to/docker-compose.yml MYSTACK > output.txt
When I run this script locally/directly from a terminal…

JoeG
- 7,191
- 10
- 60
- 105
0
votes
2 answers
How do I fix this intermittent job completion failure in dockerized slurm?
I'm trying to build a fully dockerized deployment of slurm using docker stacks, but jobs don't complete consistently. Does anyone have any idea why this might be?
Other than this problem, the system works: All the nodes come up, I can submit jobs,…

MemoryWrangler
- 335
- 2
- 10
0
votes
1 answer
docker swarm replicates more then it should
I'm running a docker swarm to handle one application that needs to be always available but only run on one node at the time. If the application is running twice, it crashes on both nodes.
I was using docker swarm to realize that and for the most…

Philipp M
- 502
- 6
- 20
0
votes
1 answer
Jenkins node in docker swarm deployed with docker stack not detected anymore
I'm running Jenkins with worker nodes in a docker swarm. I use docker stack with a docker-compose.yml file to deploy the nodes. Within the Jenkins container, I have the swam plugin installed.
Everything went well, all nodes were detected on Jenkins…

biro
- 11
- 3
0
votes
1 answer
Does Docker stack in Portainer support `Docker compose profiles`?
I am using the next tools versions:
Ubuntu version: 22.04.1
Docker version: 23.0.0, build e92dd87
Docker compose version: v2.16.0
Portainer version: 2.17.0
I am trying to setup the stack from Git repository via Portainer by following the next…

user2771704
- 5,994
- 6
- 37
- 38
0
votes
1 answer
Can't deploy a docker stack or create an overlay nw in raspberry with ubuntu 22.04.1
I have a small docker swarm of 7 x Rpis:
ubuntu@rpi105:~/stacks$ docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
me5ma5mtkl98iutcztnyar7nf rpi102 Ready Active …

juan noguera
- 135
- 2
- 3
- 10
0
votes
0 answers
Docker-stack. Forcing docker stack services to use ipv4
I would like to have a service being deployed as part of a docker stack to listen on ipv4.
Currently the docker stack deployed service (rabbitmq) is listening on ipv6, I would like to have it listen via ipv4.
The section of docker compose .yaml file…

Allan K
- 379
- 2
- 13