Luka Brecic d7652d14ef
feat(api,runner): add docker healthcheck to runner (#3941)
Signed-off-by: Luka Brecic <luka.brecic3@gmail.com>
2026-03-19 15:03:23 +01:00

18 lines
295 B
Go

// Copyright Daytona Platforms Inc.
// SPDX-License-Identifier: AGPL-3.0
package docker
import (
"context"
"fmt"
)
func (d *DockerClient) Ping(ctx context.Context) error {
_, err := d.apiClient.Ping(ctx)
if err != nil {
return fmt.Errorf("docker ping failed: %w", err)
}
return nil
}