Use printf instead of echo

`echo` adds a newline feed for the given input, therefore, it doesn't work.
This commit is contained in:
Dilip 2018-03-23 13:03:13 -07:00 committed by Joao Fernandes
parent f1789dfe57
commit 373214ff98
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ real-world example, continue to
secret from, is set to `-`.
```bash
$ echo "This is a secret" | docker secret create my_secret_data -
$ printf "This is a secret" | docker secret create my_secret_data -
```
2. Create a `redis` service and grant it access to the secret. By default,