mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
This fix is part of the effort to convert commands to spf13/cobra #23211. Thif fix coverted command `docker port` to use spf13/cobra Note: As part of this fix, a new function `RequiresMinMaxArgs(min int, max int)` has been added in cli/required.go. This function restrict the args to be at least min and at most max. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>