fix: Solve the problem of abnormal status judgment in docker (#10266)

Refs #10258
This commit is contained in:
ssongliu 2025-09-04 17:15:32 +08:00 committed by GitHub
parent c61828fb39
commit cc6b506176
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ func (u *DockerService) LoadDockerStatus() *dto.DockerStatus {
return &data
}
data.IsExist = true
data.IsActive, _ = systemctl.IsActive("docker")
data.IsActive = true
client, err := docker.NewDockerClient()
if err != nil {
global.LOG.Errorf("load docker client failed, err: %v", err)