github.com/yogeshlonkar/moby@v1.13.2-0.20201203103638-c0b64beaea94/docs/reference/commandline/secret_ls.md (about)

     1  ---
     2  title: "secret ls"
     3  description: "The secret ls command description and usage"
     4  keywords: ["secret, ls"]
     5  ---
     6  
     7  <!-- This file is maintained within the docker/docker Github
     8       repository at https://github.com/docker/docker/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # secret ls
    17  
    18  ```Markdown
    19  Usage:	docker secret ls [OPTIONS]
    20  
    21  List secrets
    22  
    23  Aliases:
    24    ls, list
    25  
    26  Options:
    27    -q, --quiet          Only display IDs
    28  ```
    29  
    30  ## Description
    31  
    32  Run this command on a manager node to list the secrets in the swarm.
    33  
    34  For detailed information about using secrets, refer to [manage sensitive data with Docker secrets](https://docs.docker.com/engine/swarm/secrets/).
    35  
    36  ## Examples
    37  
    38  ```bash
    39  $ docker secret ls
    40  
    41  ID                          NAME                    CREATED                                   UPDATED
    42  mhv17xfe3gh6xc4rij5orpfds   secret.json             2016-10-27 23:25:43.909181089 +0000 UTC   2016-10-27 23:25:43.909181089 +0000 UTC
    43  ```
    44  
    45  ## Related commands
    46  
    47  * [secret create](secret_create.md)
    48  * [secret inspect](secret_inspect.md)
    49  * [secret rm](secret_rm.md)