1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command
Yong Tang 3477da0cdb Allow docker plugin inspect to search based on ID or name
This fix tries to address the issue raised in discussion of
PR 28735 where it was not possible to manage plugin based on
plugin ID. Previously it was not possible to invoke
`docker plugin inspect` with a plugin ID (or ID prefix).

This fix updates the implementation of `docker plugin inspect`
so that it is possbile to search based on a plugin name, or a
plugin ID. A short format of plugin ID (prefix) is also possible,
as long as there is no ambiguity.

Previously the check of `docker plugin inspect` was mostly done
on the client side. This could potentially cause inconsistency
between API and CMD. This fix move all the checks to daemon side
so that API and CMD will be consistent.

An integration test has been added to cover the changes.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit 0ce6e070f7)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2016-12-02 13:39:37 -08:00
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint refactor help func in CLI 2016-11-18 13:30:44 -08:00
commands secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
container context.Context should be the first parameter of a function 2016-11-22 18:43:29 -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 Change the docker-tag usage text to be clearer 2016-11-18 13:41:48 -08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Update docs of docker network ls --filter 2016-11-28 11:19:34 -08:00
node Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
plugin Allow docker plugin inspect to search based on ID or name 2016-12-02 13:39:37 -08:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Update deprecation versions for "email" and colon in "security options" 2016-11-01 09:12:27 -07:00
secret Fix the use for secret create 2016-12-01 13:40:14 -08:00
service Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
stack stack deploy: handle external network when deploying 2016-11-30 14:10:29 -08:00
swarm fix description of 'docker swarm init' 2016-11-28 11:28:52 -08:00
system Align output of docker version again 2016-11-29 14:07:39 -08:00
task Suppressing digest for docker service ls/ps 2016-11-21 13:23:23 -08:00
volume refactor help func in CLI 2016-11-18 13:30:44 -08:00
cli.go refactor help func in CLI 2016-11-18 13:30:44 -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 Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04: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