# Class ContainerPort (0.16.1)

0.16.1 (latest) 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.19 0.9.1 0.8.1 0.7.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

    ContainerPort(mapping=None, *, ignore_unknown_fields=False, **kwargs)

ContainerPort represents a network port in a single
container.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". |
| `container_port` | `int` Port number the container listens on. This must be a valid TCP port number, 0 \< container_port=""\>\< 65536.=""\> |