Deploy or update a swarm stack from a Compose file.

Section: Swarm Services

Deploy a stack

bash
bash
docker stack deploy -c compose.yaml mystack
Explanation

A convenient higher-level workflow for multi-service swarm apps.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Swarm Services
List stacks
List deployed stacks.
OpenIn sheetbashsame section
List services in stack
List services belonging to a stack.
OpenIn sheetbashsame section
List stack tasks
List tasks for services in a stack.
OpenIn sheetbashsame section
Remove a stack
Remove a deployed stack.
OpenIn sheetbashsame section
Create a service
Create a replicated or global service in the swarm.
OpenIn sheetbashsame section
List services
List swarm services.
OpenIn sheetbashsame section