|
@@ -3,6 +3,7 @@ package self_check
|
|
|
import (
|
|
|
"errors"
|
|
|
|
|
|
+ "github.com/0xJacky/Nginx-UI/internal/helper"
|
|
|
"github.com/uozi-tech/cosy"
|
|
|
)
|
|
|
|
|
@@ -53,6 +54,12 @@ func init() {
|
|
|
for _, task := range selfCheckTasks {
|
|
|
selfCheckTaskMap[task.Name] = task
|
|
|
}
|
|
|
+ if helper.InNginxUIOfficialDocker() {
|
|
|
+ selfCheckTasks = append(selfCheckTasks, &Task{
|
|
|
+ Name: "Docker-Socket",
|
|
|
+ CheckFunc: CheckDockerSocket,
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func Run() (reports Reports) {
|