Skip to content

Type Alias: ContainerdContainerPort ​

ContainerdContainerPort = object

A container port published on the host (ContainerdContainer.ports), with every host port forwarding to it. It is read from the container's nerdctl labels, so the containers created by nerdctl report theirs too.

Properties ​

host ​

host: string

The host address the ports listen on; '0.0.0.0' for all of them.


hostPorts ​

hostPorts: number[]

The host ports forwarding to it.


port ​

port: number

The port in the container.


type ​

type: "tcp" | "udp" | "sctp"

The protocol of the port.

Released under the MIT License.