From 4f20fdcd64955e2a9ed6f0aa0d6534c7c41ece6f Mon Sep 17 00:00:00 2001 From: Ali Malek Date: Tue, 10 Nov 2020 23:09:51 +0330 Subject: [PATCH] docker-secret: add page (#4933) --- pages/common/docker-secret.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/docker-secret.md diff --git a/pages/common/docker-secret.md b/pages/common/docker-secret.md new file mode 100644 index 000000000..efb42249b --- /dev/null +++ b/pages/common/docker-secret.md @@ -0,0 +1,24 @@ +# docker secret + +> Manage Docker swarm secrets. +> More information: . + +- 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 ...}}`