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

Function HostsDirs

pkg/defaults/defaults_linux.go:116–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func HostsDirs() []string {
117 if !rootlessutil.IsRootless() {
118 return []string{"/etc/containerd/certs.d", "/etc/docker/certs.d"}
119 }
120 xch, err := rootlessutil.XDGConfigHome()
121 if err != nil {
122 panic(err)
123 }
124 return []string{
125 filepath.Join(xch, "containerd/certs.d"),
126 filepath.Join(xch, "docker/certs.d"),
127 }
128}
129
130// HostGatewayIP returns the non-loop-back host ip if available and returns empty string if running into error.
131func HostGatewayIP() string {

Callers

nothing calls this directly

Calls 2

IsRootlessFunction · 0.92
XDGConfigHomeFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…