Use spf13/cobra for docker images

This fix is part of the effort to convert commands to spf13/cobra #23211.

Thif fix coverted command `docker images` to use spf13/cobra

NOTE: As part of this fix, a new function `RequiresMaxArgs()`
has been defined in `cli/required.go`. This func returns an
error if there is not at most max args

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: fcd9f9f7bd
Component: cli
This commit is contained in:
Yong Tang
2016-06-05 20:55:47 -07:00
parent 9882b02256
commit fb468efb0a
3 changed files with 18 additions and 1 deletions

View File

@ -13,7 +13,6 @@ var DockerCommandUsage = []Command{
{"cp", "Copy files/folders between a container and the local filesystem"},
{"events", "Get real time events from the server"},
{"exec", "Run a command in a running container"},
{"images", "List images"},
{"info", "Display system-wide information"},
{"inspect", "Return low-level information on a container or image"},
{"load", "Load an image from a tar archive or STDIN"},