Skip to content

PortBinding

A published port of a container, as reported by Container.state.

Fields

container_port @ Int [get]

Port inside the container.

host_ip @ (Str | nil) [get]

Host address, or nil when unpublished.

host_port @ (Int | nil) [get]

Host port, or nil when unpublished.

protocol @ (PortProtocol | Str) [get]

Protocol, or the runtime's own name for an unrecognized one.