Commandes Linux : docker secret inspect

DOCKER SECRET INSPECT

Commande : docker secret inspect
Usage:  docker secret inspect [OPTIONS] SECRET [SECRET...]

Display detailed information on one or more secrets

Options:
  -f, --format string   Format the output using the given Go template
      --pretty          Print the information in a human friendly format

 

Afficher les informations détaillées d’un ou plusieurs secrets

docker secret inspect [OPTIONS] secret [secret...]

ex :

$ docker secret inspect dbuser
[
    {
        "ID": "vlxwm1733obxdq47wyhdxyh1l",
        "Version": {
            "Index": 118
        },
        "CreatedAt": "2018-10-24T00:57:40.020453015Z",
        "UpdatedAt": "2018-10-24T00:57:40.020453015Z",
        "Spec": {
            "Name": "dbuser",
            "Labels": {}
        }
    }
]
$ docker secret inspect --pretty dbuser
ID:              vlxwm1733obxdq47wyhdxyh1l
Name:              dbuser
Driver:
Created at:        2018-10-24 00:57:40.020453015 +0000 utc
Updated at:        2018-10-24 00:57:40.020453015 +0000 utc

 

Fermer le menu