moby/cli/command
Yong Tang c6f0b7f448 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
..
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-01 23:30:14 -05:00
commands Give a order to AddCommands, for easy read and maintenance. 2016-12-08 16:43:14 +08:00
container Convert DanglingOnly to Filters for docker image prune 2016-12-02 20:08:49 -08:00
formatter api: Hide UpdateStatus when it is not present 2016-12-01 15:08:41 -08:00
idresolver service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Update the option 'network' for docker build 2016-12-13 18:18:53 +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-02 20:08:49 -08:00
node Revert "Add -a option to service/node ps" 2016-11-28 18:08:45 +01:00
plugin Add ID field for docker plugin ls 2016-12-02 13:42:50 -08:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Add registry-specific credential helper support 2016-12-01 10:29:00 -08:00
secret Add --file flag for docker secret create command 2016-12-13 07:35:45 -08:00
service Merge pull request #25860 from yongtang/1396-service-update-publish-rm 2016-12-08 20:09:56 +01:00
stack Handle logging in compose to swarm 2016-12-05 15:18:36 +01:00
swarm Show usage when docker swarm update has no flags 2016-12-13 05:05:04 -08:00
system Support plugins in docker inspect 2016-12-02 11:33:29 -08:00
task service ps: Revert output to 1.12 behavior. 2016-12-06 18:52:47 -08:00
volume Convert DanglingOnly to Filters for docker image prune 2016-12-02 20:08:49 -08:00
cli.go Add registry-specific credential helper support 2016-12-01 10:29:00 -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-01 10:29:00 -08:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00