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

Function portReserverPidFilePath

pkg/ocihook/ocihook.go:459–461  ·  view source on GitHub ↗

portReserverPidFilePath returns /run/nerdctl/ / /port-reserver.pid

(namespace, id string)

Source from the content-addressed store, hash-verified

457
458// portReserverPidFilePath returns /run/nerdctl/<namespace>/<id>/port-reserver.pid
459func portReserverPidFilePath(namespace, id string) string {
460 return filepath.Join("/run/nerdctl/", namespace, id, "port-reserver.pid")
461}
462
463func CleanupPortReserverProcess(namespace, id string) error {
464 // In rootless mode, port-reserver is handled by Rootlesskit, so no cleanup is needed.

Callers 2

applyNetworkSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…