1
0
Fork 0
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:
Anusha Ragunathan 2018-05-15 11:48:44 -07:00 committed by GitHub
commit 85a8252c47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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