()
| 160 | } |
| 161 | |
| 162 | func initDockerConf() { |
| 163 | dockerPath, err := exec.LookPath("docker") |
| 164 | if err != nil { |
| 165 | return |
| 166 | } |
| 167 | if strings.Contains(dockerPath, "snap") { |
| 168 | constant.DaemonJsonPath = "/var/snap/docker/current/config/daemon.json" |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func initAlertTask() { |
| 173 | service.NewIAlertTaskHelper().ResetTask() |