MCPcopy
hub / github.com/google/cadvisor / getContainerdSocket

Function getContainerdSocket

integration/framework/framework.go:113–118  ·  view source on GitHub ↗

getContainerdSocket returns the containerd socket path from CONTAINERD_SOCK env var.

()

Source from the content-addressed store, hash-verified

111
112// getContainerdSocket returns the containerd socket path from CONTAINERD_SOCK env var.
113func getContainerdSocket() string {
114 if sock := os.Getenv("CONTAINERD_SOCK"); sock != "" {
115 return sock
116 }
117 return "/run/containerd/containerd.sock"
118}
119
120const (
121 Aufs string = "aufs"

Callers 1

NewFunction · 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…