1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference
Yong Tang 6841887132 Add --file flag for docker secret create command
This fix tries to address the issue raised in 28581 and 28927
where it is not possible to create a secret from a file (only
through STDIN).

This fix add a flag `--file` to `docker secret create` so that
it is possible to create a secret from a file with:
```
docker secret create --file secret.in secret.name
```

or
```
echo TEST | docker secret create --file - secret.name
```

Related docs has been updated.

An integration test has been added to cover the changes.

This fix fixes 28581.
This fix is related to 28927.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit c6f0b7f448)
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2017-01-04 12:44:55 +01:00
..
commandline Add --file flag for docker secret create command 2017-01-04 12:44:55 +01:00
builder.md Update docs for the output of docker build (Step 1/...) 2016-11-05 19:05:19 -07:00
glossary.md Fix instances of doubled words 2016-12-02 13:43:55 -08:00
index.md fix frontmatter keywords value type (string, instead of []string) in /docs/reference 2016-11-03 15:48:30 -07:00
run.md fix some broken contents links 2016-12-12 13:24:22 -08:00