docker-secret: add page (#4933)

translation-badges
Ali Malek 2020-11-10 23:09:51 +03:30 committed by GitHub
parent 13ec447aaf
commit 4f20fdcd64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# docker secret
> Manage Docker swarm secrets.
> More information: <https://docs.docker.com/engine/reference/commandline/secret/>.
- 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 ...}}`