Signed-off-by: cyli <cyli@twistedmatrix.com>
| ... | ... |
@@ -2377,11 +2377,6 @@ definitions: |
| 2377 | 2377 |
format: "dateTime" |
| 2378 | 2378 |
Spec: |
| 2379 | 2379 |
$ref: "#/definitions/ServiceSpec" |
| 2380 |
- Digest: |
|
| 2381 |
- type: "string" |
|
| 2382 |
- SecretSize: |
|
| 2383 |
- type: "integer" |
|
| 2384 |
- format: "int64" |
|
| 2385 | 2380 |
paths: |
| 2386 | 2381 |
/containers/json: |
| 2387 | 2382 |
get: |
| ... | ... |
@@ -7540,8 +7535,6 @@ paths: |
| 7540 | 7540 |
UpdatedAt: "2016-11-05T01:20:17.327670065Z" |
| 7541 | 7541 |
Spec: |
| 7542 | 7542 |
Name: "app-dev.crt" |
| 7543 |
- Digest: "sha256:11d7c6f38253b73e608153c9f662a191ae605e1a3d9b756b0b3426388f91d3fa" |
|
| 7544 |
- SecretSize: 31 |
|
| 7545 | 7543 |
500: |
| 7546 | 7544 |
description: "server error" |
| 7547 | 7545 |
schema: |
| ... | ... |
@@ -7620,8 +7613,6 @@ paths: |
| 7620 | 7620 |
UpdatedAt: "2016-11-05T01:20:17.327670065Z" |
| 7621 | 7621 |
Spec: |
| 7622 | 7622 |
Name: "app-dev.crt" |
| 7623 |
- Digest: "sha256:11d7c6f38253b73e608153c9f662a191ae605e1a3d9b756b0b3426388f91d3fa" |
|
| 7624 |
- SecretSize: 31 |
|
| 7625 | 7623 |
404: |
| 7626 | 7624 |
description: "secret not found" |
| 7627 | 7625 |
schema: |
| ... | ... |
@@ -45,8 +45,8 @@ For example, given the following secret: |
| 45 | 45 |
|
| 46 | 46 |
```bash |
| 47 | 47 |
$ docker secret ls |
| 48 |
-ID NAME CREATED UPDATED SIZE |
|
| 49 |
-mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC 1679 |
|
| 48 |
+ID NAME CREATED UPDATED |
|
| 49 |
+mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC |
|
| 50 | 50 |
``` |
| 51 | 51 |
|
| 52 | 52 |
```bash |
| ... | ... |
@@ -60,11 +60,8 @@ $ docker secret inspect secret.json |
| 60 | 60 |
"CreatedAt": "2016-10-27T23:25:43.909181089Z", |
| 61 | 61 |
"UpdatedAt": "2016-10-27T23:25:43.909181089Z", |
| 62 | 62 |
"Spec": {
|
| 63 |
- "Name": "secret.json", |
|
| 64 |
- "Data": null |
|
| 65 |
- }, |
|
| 66 |
- "Digest": "sha256:8281c6d924520986e3c6af23ed8926710a611c90339db582c2a9ac480ba622b7", |
|
| 67 |
- "SecretSize": 1679 |
|
| 63 |
+ "Name": "secret.json" |
|
| 64 |
+ } |
|
| 68 | 65 |
} |
| 69 | 66 |
] |
| 70 | 67 |
``` |
| ... | ... |
@@ -72,12 +69,12 @@ $ docker secret inspect secret.json |
| 72 | 72 |
### Formatting secret output |
| 73 | 73 |
|
| 74 | 74 |
You can use the --format option to obtain specific information about a |
| 75 |
-secret. The following example command outputs the digest of the |
|
| 75 |
+secret. The following example command outputs the creation time of the |
|
| 76 | 76 |
secret. |
| 77 | 77 |
|
| 78 | 78 |
```bash{% raw %}
|
| 79 |
-$ docker secret inspect --format='{{.Digest}}' mhv17xfe3gh6xc4rij5orpfds
|
|
| 80 |
-sha256:8281c6d924520986e3c6af23ed8926710a611c90339db582c2a9ac480ba622b7 |
|
| 79 |
+$ docker secret inspect --format='{{.CreatedAt}}' mhv17xfe3gh6xc4rij5orpfds
|
|
| 80 |
+2016-10-27 23:25:43.909181089 +0000 UTC |
|
| 81 | 81 |
{% endraw %}```
|
| 82 | 82 |
|
| 83 | 83 |
|
| ... | ... |
@@ -33,8 +33,8 @@ On a manager node: |
| 33 | 33 |
|
| 34 | 34 |
```bash |
| 35 | 35 |
$ docker secret ls |
| 36 |
-ID NAME CREATED UPDATED SIZE |
|
| 37 |
-mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC 1679 |
|
| 36 |
+ID NAME CREATED UPDATED |
|
| 37 |
+mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC |
|
| 38 | 38 |
``` |
| 39 | 39 |
## Related information |
| 40 | 40 |
|