moby--moby/cli/command
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
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint Print checkpoint id when creating a checkpoint 2016-12-07 16:11:43 -08:00
commands secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
container Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
formatter Fix several issues with `go vet` and `go fmt` 2016-11-18 15:14:49 -08:00
idresolver
image Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
inspect
network Convert DanglingOnly to Filters for `docker image prune` 2016-12-07 16:08:18 -08:00
node Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
plugin Fix usage message of `plugin inspect` 2017-01-04 12:44:54 +01:00
prune
registry Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
secret Add `--file` flag for `docker secret create` command 2017-01-04 12:44:55 +01:00
service cli: Pin image to digest using content trust 2016-12-15 18:20:13 -08:00
stack Remove `docker stack ps -a` to match removal of `docker service/node ps -a` 2017-01-04 12:44:54 +01:00
swarm swarm leave is not only for workers 2016-12-15 22:41:43 -08:00
system Fix `docker plugin inspect <unkown object>` issue on Windows 2016-12-27 13:19:16 -08:00
task service ps: Revert output to 1.12 behavior. 2016-12-12 13:25:44 -08:00
volume Convert DanglingOnly to Filters for `docker image prune` 2016-12-07 16:08:18 -08:00
cli.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
events_utils.go
in.go
out.go
registry.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
trust.go
utils.go Windows: Prompt fix 2016-12-13 17:09:29 -08:00