mirror of https://github.com/docker/docs.git
Use printf instead of echo
`echo` adds a newline feed for the given input, therefore, it doesn't work.
This commit is contained in:
parent
f1789dfe57
commit
373214ff98
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue