From 5238f3e93e6141b3615e7c8b38adae5ea2175385 Mon Sep 17 00:00:00 2001 From: Joao Fernandes Date: Mon, 2 Apr 2018 15:15:19 -0700 Subject: [PATCH] Use printf, not echo when creating secrets Update the docs so that users don't use `echo` when creating secrets from STDIN. `echo` adds a trailing new line, so users will probably be confused when their passwords don't work. Signed-off-by: Joao Fernandes --- docs/reference/commandline/secret_create.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commandline/secret_create.md b/docs/reference/commandline/secret_create.md index a1164a9809..66fc78f9f8 100644 --- a/docs/reference/commandline/secret_create.md +++ b/docs/reference/commandline/secret_create.md @@ -27,7 +27,7 @@ Options: ## Description -Creates a secret using standard input or from a file for the secret content. You must run this command on a manager node. +Creates a secret using standard input or from a file for the secret content. You must run this command on a manager node. For detailed information about using secrets, refer to [manage sensitive data with Docker secrets](https://docs.docker.com/engine/swarm/secrets/). @@ -36,7 +36,7 @@ For detailed information about using secrets, refer to [manage sensitive data wi ### Create a secret ```bash -$ echo | docker secret create my_secret - +$ printf | docker secret create my_secret - onakdyv307se2tl7nl20anokv