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
0
votes
1 answer
Docker - Inter stack network issues in a single node swarm
I have a single node swarm on Ubuntu 20. I have setup 3 stacks, all using default overlay network. Per documentation containers should be able to communicate with each other without any special setup.
But in my case containers across stacks are not…

Adarsha
- 2,267
- 22
- 29
0
votes
1 answer
Network IP address for docker compose
tl;dr I want every container in this stack to use the same IP & MAC address and be on my local network but need help on how to
For starters I'm new to docker and docker-compose. I made a docker-stack for my Plex Servers (three of them, one for…

LostChild
- 11
- 1
- 2
0
votes
1 answer
Can I use host network for docker stack deployment in a Docker Swarm cluster
Can I use host network for docker stack deployment in a Docker Swarm cluster. Basically I want to assign host IP address to all the containers in Docker Swarm.

Swapnil
- 159
- 1
- 11
0
votes
0 answers
docker stack: is it possible to set it to automatically refresh containers after some maximum lifetime?
I would like containers in one of my docker stack services to automatically be refreshed every hour.
I start with 3 instances, and every hour I would like them to be replaced with new instances one at a time, serially.
Is there a way to achieve this…

Salvatore Iovene
- 2,064
- 1
- 17
- 31
0
votes
1 answer
How to change the context path of bitbucket-server in docker mode
I am looking for a way to change the context path of bitbucket-server in docker mode, because I am trying to run it behind a traefik reverse proxy and want to use my domain for multiple applications (one for each path):
I want my bitbucket-server to…

medmoufahim
- 122
- 1
- 3
- 13
0
votes
2 answers
Docker stack doesn't update container data by tag
I'm trying to setup zero downtime deploy with docker stack. I succeeded running everything on the server, but when i try to update existing stack with a new tag, data in container doesn't changes. No errors occur and docker stack ps outputs…

Dangetsu Kami-sama
- 91
- 1
- 5
0
votes
3 answers
Docker swarm service - running state but no logs
In an existing swarm, I created a service via a docker-compose yaml file using the 'docker stack' command.
When I check the service via 'docker service ls' command, the new service shows up on the list. it shows "0/1" in the REPLICAS column
When I…

lecarpetron dookmarion
- 519
- 2
- 7
- 18
0
votes
0 answers
override COPY command from Dockerfile in a Docker stack file
Let say I am copying files in a Dockerfile. For example, I am copying a file called config.txt.
What is the best way, to copy a new config.txt file from the docker stack command, that will thus change the existing config.txt file that wass copied…

nolwww
- 1,355
- 1
- 15
- 33
0
votes
1 answer
Docker Swarm Overlay Network Between Workers
While I've seen other questions about this topic, none seem to be a close enough match to what I'm encountering. Here's my Docker version info within my Swarm:
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: …

Ruhrohshingo
- 11
- 3
0
votes
1 answer
How to achieve zero downtime with docker stack
Docker updates container but network registration takes 10 minutes to complete so while the new container is being registered the page returns 502 because internal network is still pointing at the old container. How can i delay the removal of the…

IdiotDrake
- 37
- 9
0
votes
2 answers
How to switch to docker Compose file v3 for applications running exclusively on my workstation?
There are a lot of applications which I launch on my workstation using docker-compose up.
Reasons:
They don't have an installer, or I don't want to use it
They require a dedicated storage engine to be present
They require a build process step
They…

Marinos An
- 9,481
- 6
- 63
- 96
0
votes
1 answer
View Docker Swarm CMD Line Output
I am trying to incorporate a python container and a dynamodb container into one stack file to experiment with Docker swarm. I have done tutorials on docker swarm seeing web apps running across multiple nodes before but never built anything…

greenPlant
- 482
- 4
- 16
0
votes
1 answer
Docker image versioning with docker stack
I've setup a staging and a production server. The flow is as follows. I develop and push my new image to the staging registry. There the code is tested and if everything fits I want to push the image to the production server. I also want to use…

FishingIsLife
- 1,972
- 3
- 28
- 51
0
votes
1 answer
docker stack - commit changes of docker-compose.yml
I wanted to change the placement (manager/worker) of several containers in my docker stack deployment (swarm). Now im asking myself how i can commit the changes of my docker-compose.yml file to the deployed stack as I changed/extended the…
user11684966
0
votes
2 answers
Can't deploy docker stack with compose file version 2.4
I am trying to deploy my docker stack using compose file. When I deploy with compose file version 3+, the deploy works perfectly fine. But when I am trying to use the 2.4 version or lower I get this error:
unsupported Compose file version: 2.4
I…

Annie Owl
- 1
- 2