2017-03-27 05:10:58 -04:00
|
|
|
---
|
|
|
|
title: "stack"
|
|
|
|
description: "The stack command description and usage"
|
|
|
|
keywords: "stack"
|
|
|
|
---
|
|
|
|
|
2017-10-04 13:03:55 -04:00
|
|
|
<!-- This file is maintained within the docker/cli GitHub
|
2017-07-28 13:28:23 -04:00
|
|
|
repository at https://github.com/docker/cli/. Make all
|
2017-03-27 05:10:58 -04:00
|
|
|
pull requests against that repo. If you see this file in
|
|
|
|
another repository, consider it read-only there, as it will
|
|
|
|
periodically be overwritten by the definitive file. Pull
|
|
|
|
requests which include edits to this file in other repositories
|
|
|
|
will be rejected.
|
|
|
|
-->
|
|
|
|
|
|
|
|
# stack
|
|
|
|
|
|
|
|
```markdown
|
2018-06-22 02:16:27 -04:00
|
|
|
Usage: docker stack [OPTIONS] COMMAND
|
2017-03-27 05:10:58 -04:00
|
|
|
|
|
|
|
Manage Docker stacks
|
|
|
|
|
|
|
|
Options:
|
2018-06-22 02:16:27 -04:00
|
|
|
--help Print usage
|
|
|
|
--kubeconfig string Kubernetes config file
|
|
|
|
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
|
2017-03-27 05:10:58 -04:00
|
|
|
|
|
|
|
Commands:
|
|
|
|
deploy Deploy a new stack or update an existing stack
|
|
|
|
ls List stacks
|
|
|
|
ps List the tasks in the stack
|
2018-06-22 02:16:27 -04:00
|
|
|
rm Remove one or more stacks
|
2017-03-27 05:10:58 -04:00
|
|
|
services List the services in the stack
|
|
|
|
|
|
|
|
Run 'docker stack COMMAND --help' for more information on a command.
|
|
|
|
```
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Manage stacks.
|
|
|
|
|