mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update docs to reflect no longer displaying secret digest or size.
Signed-off-by: cyli <cyli@twistedmatrix.com>
This commit is contained in:
parent
2c0613540a
commit
fe127b7eae
3 changed files with 9 additions and 21 deletions
|
@ -2377,11 +2377,6 @@ definitions:
|
||||||
format: "dateTime"
|
format: "dateTime"
|
||||||
Spec:
|
Spec:
|
||||||
$ref: "#/definitions/ServiceSpec"
|
$ref: "#/definitions/ServiceSpec"
|
||||||
Digest:
|
|
||||||
type: "string"
|
|
||||||
SecretSize:
|
|
||||||
type: "integer"
|
|
||||||
format: "int64"
|
|
||||||
paths:
|
paths:
|
||||||
/containers/json:
|
/containers/json:
|
||||||
get:
|
get:
|
||||||
|
@ -7540,8 +7535,6 @@ paths:
|
||||||
UpdatedAt: "2016-11-05T01:20:17.327670065Z"
|
UpdatedAt: "2016-11-05T01:20:17.327670065Z"
|
||||||
Spec:
|
Spec:
|
||||||
Name: "app-dev.crt"
|
Name: "app-dev.crt"
|
||||||
Digest: "sha256:11d7c6f38253b73e608153c9f662a191ae605e1a3d9b756b0b3426388f91d3fa"
|
|
||||||
SecretSize: 31
|
|
||||||
500:
|
500:
|
||||||
description: "server error"
|
description: "server error"
|
||||||
schema:
|
schema:
|
||||||
|
@ -7620,8 +7613,6 @@ paths:
|
||||||
UpdatedAt: "2016-11-05T01:20:17.327670065Z"
|
UpdatedAt: "2016-11-05T01:20:17.327670065Z"
|
||||||
Spec:
|
Spec:
|
||||||
Name: "app-dev.crt"
|
Name: "app-dev.crt"
|
||||||
Digest: "sha256:11d7c6f38253b73e608153c9f662a191ae605e1a3d9b756b0b3426388f91d3fa"
|
|
||||||
SecretSize: 31
|
|
||||||
404:
|
404:
|
||||||
description: "secret not found"
|
description: "secret not found"
|
||||||
schema:
|
schema:
|
||||||
|
|
|
@ -45,8 +45,8 @@ For example, given the following secret:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker secret ls
|
$ docker secret ls
|
||||||
ID NAME CREATED UPDATED SIZE
|
ID NAME CREATED UPDATED
|
||||||
mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC 1679
|
mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -60,11 +60,8 @@ $ docker secret inspect secret.json
|
||||||
"CreatedAt": "2016-10-27T23:25:43.909181089Z",
|
"CreatedAt": "2016-10-27T23:25:43.909181089Z",
|
||||||
"UpdatedAt": "2016-10-27T23:25:43.909181089Z",
|
"UpdatedAt": "2016-10-27T23:25:43.909181089Z",
|
||||||
"Spec": {
|
"Spec": {
|
||||||
"Name": "secret.json",
|
"Name": "secret.json"
|
||||||
"Data": null
|
}
|
||||||
},
|
|
||||||
"Digest": "sha256:8281c6d924520986e3c6af23ed8926710a611c90339db582c2a9ac480ba622b7",
|
|
||||||
"SecretSize": 1679
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
@ -72,12 +69,12 @@ $ docker secret inspect secret.json
|
||||||
### Formatting secret output
|
### Formatting secret output
|
||||||
|
|
||||||
You can use the --format option to obtain specific information about a
|
You can use the --format option to obtain specific information about a
|
||||||
secret. The following example command outputs the digest of the
|
secret. The following example command outputs the creation time of the
|
||||||
secret.
|
secret.
|
||||||
|
|
||||||
```bash{% raw %}
|
```bash{% raw %}
|
||||||
$ docker secret inspect --format='{{.Digest}}' mhv17xfe3gh6xc4rij5orpfds
|
$ docker secret inspect --format='{{.CreatedAt}}' mhv17xfe3gh6xc4rij5orpfds
|
||||||
sha256:8281c6d924520986e3c6af23ed8926710a611c90339db582c2a9ac480ba622b7
|
2016-10-27 23:25:43.909181089 +0000 UTC
|
||||||
{% endraw %}```
|
{% endraw %}```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ On a manager node:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker secret ls
|
$ docker secret ls
|
||||||
ID NAME CREATED UPDATED SIZE
|
ID NAME CREATED UPDATED
|
||||||
mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC 1679
|
mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC
|
||||||
```
|
```
|
||||||
## Related information
|
## Related information
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue