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: 65a0034c67dbcc9e7a2baf285fca7d2435b689a3 Component: engine