# Functions
ContainerNetNSPath returns the netns path of a container.
ContainerStateDirPath returns the path to the Nerdctl-managed state directory for the container with the given ID.
ContainerStatus returns the container's status from its task.
CopyFiles implements `nerdctl cp`.
GenerateSharingPIDOpts returns the oci.SpecOpts that shares the host linux namespace from `targetCon` If `targetCon` doesn't have a `PIDNamespace`, a new one is generated from its `Pid`.
No description provided by the author
GetContainerVolumes is a function that returns a slice of containerVolume pointers.
NetworkOptionsFromSpec Returns the NetworkOptions used in a container's creation from its spec.Annotations.
NewNetworkingOptionsManager Returns a types.NetworkOptionsManager based on the provided command's flags.
Pause pauses a container by its id.
PrintHostPort writes to `writer` the public (HostIP:HostPort) of a given `containerPort/protocol` in a container.
ReconfigIPCContainer reconfigures the container's spec options for sharing IPC namespace and volumns.
ReconfigNetContainer reconfigures the container's network namespace path.
ReconfigPIDContainer reconfigures the container's spec options for sharing PID namespace.
Start starts `container` with `attach` flag.
Stop stops `container` by sending SIGTERM.
Unpause unpauses a container by its id.
UpdateErrorLabel updates the "nerdctl/error" label of the container according to the container error.
UpdateExplicitlyStoppedLabel updates the "containerd.io/restart.explicitly-stopped" label of the container according to the value of explicitlyStopped.
UpdateStatusLabel updates the "containerd.io/restart.status" label of the container according to the value of restart desired status.
WithBindMountHostProcfs replaces procfs mount with rbind.
# Constants
No description provided by the author
# Structs
ContainerVolume is a struct representing a volume in a container.
# Interfaces
NetworkOptionsManager types.NetworkOptionsManager is an interface for reading/setting networking options for containers based on the provided command flags.