Documentation
¶
Overview ¶
Package labels defines labels that are set to containerd containers as labels. The labels are also passed to OCI containers as annotations.
Index ¶
Constants ¶
View Source
const ( // Prefix is the common prefix of nerdctl labels Prefix = "nerdctl/" // Namespace is the containerd namespace such as "default", "k8s.io" Namespace = Prefix + "namespace" // Name is a human-friendly name. // WARNING: multiple containers may have same the name label Name = Prefix + "name" // Hostname Hostname = Prefix + "hostname" // StateDir is "/var/lib/nerdctl/<ADDRHASH>/containers/<NAMESPACE>/<ID>" StateDir = Prefix + "state-dir" // Networks is a JSON-marshalled string of []string, e.g. []string{"bridge"}. // Currently, the length of the slice must be 1. Networks = Prefix + "networks" // Ports is a JSON-marshalled string of []gocni.PortMapping . Ports = Prefix + "ports" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.