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

Function initDockerConf

core/init/hook/hook.go:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func initDockerConf() {
96 dockerPath, err := exec.LookPath("docker")
97 if err != nil {
98 return
99 }
100 if strings.Contains(dockerPath, "snap") {
101 constant.DaemonJsonPath = "/var/snap/docker/current/config/daemon.json"
102 }
103}

Callers 1

InitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected