2016-10-27 20:30:32 -04:00
|
|
|
---
|
|
|
|
title: "secret ls"
|
|
|
|
description: "The secret ls command description and usage"
|
|
|
|
keywords: ["secret, ls"]
|
|
|
|
---
|
|
|
|
|
|
|
|
<!-- This file is maintained within the docker/docker Github
|
|
|
|
repository at https://github.com/docker/docker/. Make all
|
|
|
|
pull requests against that repo. If you see this file in
|
|
|
|
another repository, consider it read-only there, as it will
|
|
|
|
periodically be overwritten by the definitive file. Pull
|
|
|
|
requests which include edits to this file in other repositories
|
|
|
|
will be rejected.
|
|
|
|
-->
|
|
|
|
|
|
|
|
# secret ls
|
|
|
|
|
|
|
|
```Markdown
|
|
|
|
Usage: docker secret ls [OPTIONS]
|
|
|
|
|
|
|
|
List secrets
|
|
|
|
|
|
|
|
Aliases:
|
|
|
|
ls, list
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-q, --quiet Only display IDs
|
|
|
|
```
|
|
|
|
|
2016-10-31 11:02:10 -04:00
|
|
|
Run this command from a manager to list the secrets in the Swarm.
|
2016-10-27 20:30:32 -04:00
|
|
|
|
|
|
|
On a manager node:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker secret ls
|
2016-11-22 18:18:50 -05:00
|
|
|
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
|
2016-10-27 20:30:32 -04:00
|
|
|
```
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [secret create](secret_create.md)
|
|
|
|
* [secret inspect](secret_inspect.md)
|
|
|
|
* [secret rm](secret_rm.md)
|