MCPcopy Create free account
hub / github.com/containerd/nerdctl / ContainerStateDirPath

Function ContainerStateDirPath

pkg/containerutil/containerutil.go:562–564  ·  view source on GitHub ↗

ContainerStateDirPath returns the path to the Nerdctl-managed state directory for the container with the given ID.

(ns, dataStore, id string)

Source from the content-addressed store, hash-verified

560
561// ContainerStateDirPath returns the path to the Nerdctl-managed state directory for the container with the given ID.
562func ContainerStateDirPath(ns, dataStore, id string) (string, error) {
563 return filepath.Join(dataStore, "containers", ns, id), nil
564}
565
566// ContainerVolume is a struct representing a volume in a container.
567type ContainerVolume struct {

Callers 8

CommitFunction · 0.92
RemoveContainerFunction · 0.92
CreateFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…