getContainerdSocket returns the containerd socket path from CONTAINERD_SOCK env var.
()
| 111 | |
| 112 | // getContainerdSocket returns the containerd socket path from CONTAINERD_SOCK env var. |
| 113 | func getContainerdSocket() string { |
| 114 | if sock := os.Getenv("CONTAINERD_SOCK"); sock != "" { |
| 115 | return sock |
| 116 | } |
| 117 | return "/run/containerd/containerd.sock" |
| 118 | } |
| 119 | |
| 120 | const ( |
| 121 | Aufs string = "aufs" |
no outgoing calls
no test coverage detected
searching dependent graphs…