cmd/hi: fixes and qol (#2649)
This commit is contained in:
parent
ea7376f522
commit
afc11e1f0c
31 changed files with 1097 additions and 311 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue