fix(engine): bersihkan output versi compose provider podman + socket env di doctor — verifikasi podman 6.1.4 live
CI / test (push) Successful in 24s
CI / test (push) Successful in 24s
This commit is contained in:
1 parent
24a1d634cd
commit
771f7d2452
2 files changed
+19
-2
No files matched your search
@@ -39,7 +39,11 @@ func Doctor(w io.Writer) int {
|
||||
engineName = engine.Name
|
||||
host := engine.Host
|
||||
if host == "" {
|
||||
host = i18n.T("doctor.hostDefault")
|
||||
if env := os.Getenv("DOCKER_HOST"); env != "" {
|
||||
host = env
|
||||
} else {
|
||||
host = i18n.T("doctor.hostDefault")
|
||||
}
|
||||
}
|
||||
if info, err := cl.Info(ctx); err != nil {
|
||||
fmt.Fprintf(w, "engine : %s %s %v\n", i18n.T("error.warn"), engine.Name, err)
|
||||
|
||||
Reference in new issue
Block a user