docker secret inspect mysecret --pretty

Category: Docker

docker secret inspect mysecret --pretty

Inspect a swarm secret in readable form

Shows metadata of the secret mysecret, including creation time and ID. --pretty formats the JSON for humans instead of raw output. Secret values themselves are never readable after creation.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.