doc review updates

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2016-10-31 11:02:10 -04:00 committed by Tibor Vass
parent 2161bbf176
commit f0026b6e12
4 changed files with 7 additions and 7 deletions

View File

@ -71,8 +71,8 @@ $ docker secret inspect mhv17xfe3gh6xc4rij5orpfds
### Formatting secret output ### Formatting secret output
The `--format` option can be used to obtain specific information about a You can use the --format option to obtain specific information about a
secret. For example, the following command outputs the digest of the secret. The following example command outputs the digest of the
secret. secret.
```bash{% raw %} ```bash{% raw %}

View File

@ -27,8 +27,7 @@ Options:
-q, --quiet Only display IDs -q, --quiet Only display IDs
``` ```
This command when run targeting a manager, lists secrets in the Run this command from a manager to list the secrets in the Swarm.
swarm.
On a manager node: On a manager node:

View File

@ -30,7 +30,7 @@ Options:
Removes the specified secrets from the swarm. This command has to be run Removes the specified secrets from the swarm. This command has to be run
targeting a manager node. targeting a manager node.
For example, to remove secret: This example removes a secret:
```bash ```bash
$ docker secret rm sapth4csdo5b6wz2p5uimh5xg $ docker secret rm sapth4csdo5b6wz2p5uimh5xg

View File

@ -121,8 +121,9 @@ ID NAME MODE REPLICAS IMAGE
``` ```
### Create a service with secrets ### Create a service with secrets
Use the `--secret` flag to use a [secret](secret_create.md). The following Use the `--secret` flag to give a container access to a
command will create a service with two secrets named `ssh-key` and `app-key`: [secret](secret_create.md). The following command will create a service
with two secrets named `ssh-key` and `app-key`:
```bash ```bash
$ docker service create --name redis --secret ssh-key:ssh --secret app-key:app redis:3.0.6 $ docker service create --name redis --secret ssh-key:ssh --secret app-key:app redis:3.0.6