# PortSummary


[API catalog](/reference/api/) · [Docker Engine overview](/reference/api/engine/version/v1.57/) · [Product manual](https://docs.docker.com/engine/) · [OpenAPI specification](/reference/api/engine/version/v1.57.yaml)

API version: 1.57





Schema constraints and annotations:

```json
{
  "description": "Describes a port-mapping between the container and the host.\n",
  "example": {
    "PrivatePort": 8080,
    "PublicPort": 80,
    "Type": "tcp"
  },
  "properties": {
    "IP": {
      "description": "Host IP address that the container's port is mapped to",
      "format": "ip-address",
      "type": "string",
      "x-go-type": {
        "import": {
          "package": "net/netip"
        },
        "type": "Addr"
      }
    },
    "PrivatePort": {
      "description": "Port on the container",
      "format": "uint16",
      "type": "integer",
      "x-nullable": false
    },
    "PublicPort": {
      "description": "Port exposed on the host",
      "format": "uint16",
      "type": "integer"
    },
    "Type": {
      "enum": [
        "tcp",
        "udp",
        "sctp"
      ],
      "type": "string",
      "x-nullable": false
    }
  },
  "required": [
    "PrivatePort",
    "Type"
  ],
  "type": "object"
}
```



