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

Function NerdctlTOML

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

Source from the content-addressed store, hash-verified

103}
104
105func NerdctlTOML() string {
106 if !rootlessutil.IsRootless() {
107 return "/etc/nerdctl/nerdctl.toml"
108 }
109 xch, err := rootlessutil.XDGConfigHome()
110 if err != nil {
111 panic(err)
112 }
113 return filepath.Join(xch, "nerdctl/nerdctl.toml")
114}
115
116func HostsDirs() []string {
117 if !rootlessutil.IsRootless() {

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…