mirror of https://github.com/docker/cli.git
cli/command/container: runPort(): update godoc, and add todo
We should consider showing all mappings for a given port if no specific proto was specified. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
79dca7a38e
commit
f0435fd3f3
|
@ -43,6 +43,12 @@ func NewPortCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// runPort shows the port mapping for a given container. Optionally, it
|
||||||
|
// allows showing the mapping for a specific (container)port and proto.
|
||||||
|
//
|
||||||
|
// TODO(thaJeztah): currently this defaults to show the TCP port if no
|
||||||
|
// proto is specified. We should consider changing this to "any" protocol
|
||||||
|
// for the given private port.
|
||||||
func runPort(dockerCli command.Cli, opts *portOptions) error {
|
func runPort(dockerCli command.Cli, opts *portOptions) error {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue