Section: Swarm Services

Remove a stack

bash
bash
docker stack rm mystack
Explanation

Stops and removes the stack's services and networks.

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
Remove a service
Remove a swarm service.
OpenIn sheetbashsame section
Deploy a stack
Deploy or update a swarm stack from a Compose file.
OpenIn sheetbashsame section
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
Create a service
Create a replicated or global service in the swarm.
OpenIn sheetbashsame section