()
| 114 | } |
| 115 | |
| 116 | func 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. |
| 131 | func HostGatewayIP() string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…