mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #36971 from emanb29/6478-documentHostIP
Describe IP field of Port definition
This commit is contained in:
commit
85a8252c47
2 changed files with 2 additions and 1 deletions
|
@ -155,6 +155,7 @@ definitions:
|
||||||
IP:
|
IP:
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "ip-address"
|
format: "ip-address"
|
||||||
|
description: "Host IP address that the container's port is mapped to"
|
||||||
PrivatePort:
|
PrivatePort:
|
||||||
type: "integer"
|
type: "integer"
|
||||||
format: "uint16"
|
format: "uint16"
|
||||||
|
|
|
@ -7,7 +7,7 @@ package types
|
||||||
// swagger:model Port
|
// swagger:model Port
|
||||||
type Port struct {
|
type Port struct {
|
||||||
|
|
||||||
// IP
|
// Host IP address that the container's port is mapped to
|
||||||
IP string `json:"IP,omitempty"`
|
IP string `json:"IP,omitempty"`
|
||||||
|
|
||||||
// Port on the container
|
// Port on the container
|
||||||
|
|
Loading…
Add table
Reference in a new issue