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 service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
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 add docker network prune 2016-10-25 06:43:54 +00:00
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 Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go Windows: Prompt fix 2016-12-13 17:09:29 -08:00