Merge pull request #36971 from emanb29/6478-documentHostIP

Describe IP field of Port definition
Upstream-commit: 85a8252c47538ac90c30090574b6e9f1795bb6b7
Component: engine
This commit is contained in:
Anusha Ragunathan
2018-05-15 11:48:44 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -155,6 +155,7 @@ definitions:
IP:
type: "string"
format: "ip-address"
description: "Host IP address that the container's port is mapped to"
PrivatePort:
type: "integer"
format: "uint16"

View File

@ -7,7 +7,7 @@ package types
// swagger:model Port
type Port struct {
// IP
// Host IP address that the container's port is mapped to
IP string `json:"IP,omitempty"`
// Port on the container