Merge pull request #552 from peauc/feature/issue-493 · jesseduffield/lazydocker@c73b3f7 (original) (raw)

Original file line number Diff line number Diff line change
@@ -374,7 +374,8 @@ func determineDockerHost() (string, error) {
374 374 currentContext = cf.CurrentContext
375 375 }
376 376
377 -if currentContext == "" {
377 +// On some systems (windows) `default` is stored in the docker config as the currentContext.
378 +if currentContext == "" |
378 379 // If a docker context is neither specified via the "DOCKER_CONTEXT" environment variable nor via the
379 380 // $HOME/.docker/config file, then we fall back to connecting to the "default docker host" meant for
380 381 // the host operating system.