cmd/hi: fixes and qol (#2649)

This commit is contained in:
Kristoffer Dalby 2025-06-23 13:43:14 +02:00 committed by GitHub
parent ea7376f522
commit afc11e1f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 1097 additions and 311 deletions

View file

@ -7,8 +7,6 @@ import (
"log"
"os/exec"
"strings"
"github.com/docker/docker/client"
)
var ErrSystemChecksFailed = errors.New("system checks failed")
@ -88,7 +86,7 @@ func checkDockerBinary() DoctorResult {
// checkDockerDaemon verifies Docker daemon is running and accessible.
func checkDockerDaemon(ctx context.Context) DoctorResult {
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
cli, err := createDockerClient()
if err != nil {
return DoctorResult{
Name: "Docker Daemon",