MCPcopy
hub / github.com/containerd/containerd / getContainerRootDir

Method getContainerRootDir

internal/cri/server/helpers.go:143–145  ·  view source on GitHub ↗

getContainerRootDir returns the root directory for managing container files, e.g. state checkpoint.

(id string)

Source from the content-addressed store, hash-verified

141// getContainerRootDir returns the root directory for managing container files,
142// e.g. state checkpoint.
143func (c *criService) getContainerRootDir(id string) string {
144 return filepath.Join(c.config.RootDir, containersDir, id)
145}
146
147// getImageVolumeHostPath returns the image volume directory for share.
148func (c *criService) getImageVolumeHostPath(podID, imageID string) string {

Callers 5

createContainerMethod · 0.95
loadContainerMethod · 0.95
CheckpointContainerMethod · 0.95
StartContainerMethod · 0.95
RemoveContainerMethod · 0.95

Implementers 1

criServiceinternal/cri/server/service.go

Calls

no outgoing calls

Tested by

no test coverage detected