Update docker stack experimental notes

Update command usage and help.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
master
Vincent Demeester 2017-02-07 15:14:38 +01:00 committed by Tibor Vass
parent d39215cbaa
commit 705f7ad7d2
1 changed files with 14 additions and 11 deletions

View File

@ -37,22 +37,26 @@ Wrote bundle to vossibility-stack.dab
A stack is created using the `docker deploy` command:
```bash
# docker deploy --help
$ docker deploy --help
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:
--file string Path to a Distributed Application Bundle file (Default: STACK.dab)
--help Print usage
--with-registry-auth Send registry authentication details to Swarm agents
--bundle-file string Path to a Distributed Application Bundle file
-c, --compose-file string Path to a Compose file
--help Print usage
--with-registry-auth Send registry authentication details to Swarm agents
```
Let's deploy the stack created before:
```bash
# docker deploy vossibility-stack
$ docker deploy --bundle-file vossibility-stack.dab vossibility-stack
Loading bundle from vossibility-stack.dab
Creating service vossibility-stack_elasticsearch
Creating service vossibility-stack_kibana
@ -90,12 +94,11 @@ Options:
--help Print usage
Commands:
config Print the stack configuration
deploy Create and update a stack
deploy Deploy a new stack or update an existing stack
ls List stacks
ps List the tasks in the stack
rm Remove 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.
```
@ -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).
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
correspond to the new `Service` object introduced in the 1.12 Docker Engine API.