Merge pull request #30789 from vdemeester/carry-update-docker-stack-experimental
Update docker stack experimental notes
(cherry picked from commit c5a592a0a4
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0a506d9429
commit
f64a1832bd
1 changed files with 14 additions and 11 deletions
|
@ -37,22 +37,26 @@ Wrote bundle to vossibility-stack.dab
|
||||||
A stack is created using the `docker deploy` command:
|
A stack is created using the `docker deploy` command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# docker deploy --help
|
$ docker deploy --help
|
||||||
|
|
||||||
Usage: docker deploy [OPTIONS] STACK
|
Usage: docker deploy [OPTIONS] STACK
|
||||||
|
|
||||||
Create and update a stack from a Distributed Application Bundle (DAB)
|
Deploy a new stack or update an existing stack
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
deploy, up
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
|
--bundle-file string Path to a Distributed Application Bundle file
|
||||||
--help Print usage
|
-c, --compose-file string Path to a Compose file
|
||||||
--with-registry-auth Send registry authentication details to Swarm agents
|
--help Print usage
|
||||||
|
--with-registry-auth Send registry authentication details to Swarm agents
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Let's deploy the stack created before:
|
Let's deploy the stack created before:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# docker deploy vossibility-stack
|
$ docker deploy --bundle-file vossibility-stack.dab vossibility-stack
|
||||||
Loading bundle from vossibility-stack.dab
|
Loading bundle from vossibility-stack.dab
|
||||||
Creating service vossibility-stack_elasticsearch
|
Creating service vossibility-stack_elasticsearch
|
||||||
Creating service vossibility-stack_kibana
|
Creating service vossibility-stack_kibana
|
||||||
|
@ -90,12 +94,11 @@ Options:
|
||||||
--help Print usage
|
--help Print usage
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
config Print the stack configuration
|
deploy Deploy a new stack or update an existing stack
|
||||||
deploy Create and update a stack
|
|
||||||
ls List stacks
|
ls List stacks
|
||||||
|
ps List the tasks in the stack
|
||||||
rm Remove the stack
|
rm Remove the stack
|
||||||
services List the services in the stack
|
services List the services in the stack
|
||||||
tasks List the tasks in the stack
|
|
||||||
|
|
||||||
Run 'docker stack COMMAND --help' for more information on a command.
|
Run 'docker stack COMMAND --help' for more information on a command.
|
||||||
```
|
```
|
||||||
|
@ -107,7 +110,7 @@ are persisted as files, the file extension is `.dab` (Docker 1.12RC2 tools use
|
||||||
`.dsb` for the file extension—this will be updated in the next release client).
|
`.dsb` for the file extension—this will be updated in the next release client).
|
||||||
|
|
||||||
A bundle has two top-level fields: `version` and `services`. The version used
|
A bundle has two top-level fields: `version` and `services`. The version used
|
||||||
by Docker 1.12 tools is `0.1`.
|
by Docker 1.12 and later tools is `0.1`.
|
||||||
|
|
||||||
`services` in the bundle are the services that comprise the app. They
|
`services` in the bundle are the services that comprise the app. They
|
||||||
correspond to the new `Service` object introduced in the 1.12 Docker Engine API.
|
correspond to the new `Service` object introduced in the 1.12 Docker Engine API.
|
||||||
|
|
Loading…
Reference in a new issue