Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
| ... | ... |
@@ -71,8 +71,8 @@ $ docker secret inspect mhv17xfe3gh6xc4rij5orpfds |
| 71 | 71 |
|
| 72 | 72 |
### Formatting secret output |
| 73 | 73 |
|
| 74 |
-The `--format` option can be used to obtain specific information about a |
|
| 75 |
-secret. For example, the following command outputs the digest of the |
|
| 74 |
+You can use the --format option to obtain specific information about a |
|
| 75 |
+secret. The following example command outputs the digest of the |
|
| 76 | 76 |
secret. |
| 77 | 77 |
|
| 78 | 78 |
```bash{% raw %}
|
| ... | ... |
@@ -121,8 +121,9 @@ ID NAME MODE REPLICAS IMAGE |
| 121 | 121 |
``` |
| 122 | 122 |
|
| 123 | 123 |
### Create a service with secrets |
| 124 |
-Use the `--secret` flag to use a [secret](secret_create.md). The following |
|
| 125 |
-command will create a service with two secrets named `ssh-key` and `app-key`: |
|
| 124 |
+Use the `--secret` flag to give a container access to a |
|
| 125 |
+[secret](secret_create.md). The following command will create a service |
|
| 126 |
+with two secrets named `ssh-key` and `app-key`: |
|
| 126 | 127 |
|
| 127 | 128 |
```bash |
| 128 | 129 |
$ docker service create --name redis --secret ssh-key:ssh --secret app-key:app redis:3.0.6 |