mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
17 lines
255 B
Go
17 lines
255 B
Go
package self_check
|
|
|
|
import (
|
|
"github.com/0xJacky/Nginx-UI/internal/helper"
|
|
)
|
|
|
|
func CheckDockerSocket() error {
|
|
if !helper.InNginxUIOfficialDocker() {
|
|
return nil
|
|
}
|
|
|
|
if !helper.DockerSocketExists() {
|
|
return ErrDockerSocketNotExist
|
|
}
|
|
|
|
return nil
|
|
}
|