Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: return 200 from environment health check
Kyle Mendell6b46c36a2373
diff --git a/backend/internal/system/handler.go b/backend/internal/system/handler.goindex 8e5c31bba..dc2534da1 100644--- a/backend/internal/system/handler.go+++ b/backend/internal/system/handler.go@@ -48,10 +48,6 @@ type SystemHealthInput struct {EnvironmentID string `path:"id" doc:"Environment ID"`}-type SystemHealthOutput struct {- Status int `status:"200"`-}-type GetDockerInfoInput struct {EnvironmentID string `path:"id" doc:"Environment ID"`}@@ -285,7 +281,7 @@ func (h *SystemHandler) rejectIfAgentModeInternal() error {}// Health checks if the Docker daemon is responsive.-func (h *SystemHandler) Health(ctx context.Context, input *SystemHealthInput) (*SystemHealthOutput, error) {+func (h *SystemHandler) Health(ctx context.Context, input *SystemHealthInput) (*struct{}, error) {dockerClient, err := h.dockerService.GetClient(ctx)if err != nil {return nil, huma.Error503ServiceUnavailable(errors.WithMessage(err, "Failed to connect to Docker").Error())@@ -296,7 +292,7 @@ func (h *SystemHandler) Health(ctx context.Context, input *SystemHealthInput) (*return nil, huma.Error503ServiceUnavailable(errors.WithMessage(err, "Docker is not responsive").Error())}- return &SystemHealthOutput{}, nil+ return nil, nil}// GetDockerInfo returns Docker daemon version and system information.