docker-secret - Man Page
Manage Swarm secrets
Examples (TL;DR)
- Create a new secret from
stdin
:command | docker secret create secret_name -
- Create a new secret from a file:
docker secret create secret_name path/to/file
- List all secrets:
docker secret ls
- Display detailed information on one or multiple secrets in a human friendly format:
docker secret inspect --pretty secret_name1 secret_name2 ...
- Remove one or more secrets:
docker secret rm secret_name1 secret_name2 ...
Synopsis
docker secret
Description
Manage Swarm secrets
Options
-h, --help[=false] help for secret
See Also
docker(1), docker-secret-create(1), docker-secret-inspect(1), docker-secret-ls(1), docker-secret-rm(1)
Referenced By
docker-secret-create(1), docker-secret-inspect(1), docker-secret-ls(1), docker-secret-rm(1).
Dec 2024 Docker Community Docker User Manuals