mirror of https://github.com/docker/cli.git
Merge pull request #979 from joaofnfernandes/docs-secrets-6294
Use printf, not echo when creating secrets
This commit is contained in:
commit
17aaad6f06
|
@ -27,7 +27,7 @@ Options:
|
||||||
|
|
||||||
## Description
|
## 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/).
|
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
|
### Create a secret
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ echo <secret> | docker secret create my_secret -
|
$ printf <secret> | docker secret create my_secret -
|
||||||
|
|
||||||
onakdyv307se2tl7nl20anokv
|
onakdyv307se2tl7nl20anokv
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue