DockerCLI/command/secret
Yong Tang 8e680c48f1 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>
2016-12-13 07:35:45 -08:00
..
cmd.go refactor help func in CLI 2016-11-17 10:54:10 -08:00
create.go Add `--file` flag for `docker secret create` command 2016-12-13 07:35:45 -08:00
inspect.go Fix the inconsistency for docker secret 2016-11-30 17:23:39 +08:00
ls.go Fix the inconsistency for docker secret 2016-11-30 17:23:39 +08:00
remove.go Merge pull request #28922 from yuexiao-wang/fix-secret 2016-12-01 11:29:58 +01:00
utils.go Fix issue where secret ID is masked by name 2016-12-02 20:24:29 -08:00