MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / initDockerConf

Function initDockerConf

agent/init/hook/hook.go:162–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162func 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
172func initAlertTask() {
173 service.NewIAlertTaskHelper().ResetTask()

Callers 1

InitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected