Skip to content

Commit

Permalink
fix lazydocker breaking when having default docker explicitly mention…
Browse files Browse the repository at this point in the history
…ed in docker config
  • Loading branch information
peauc committed Jun 18, 2024
1 parent 80af149 commit f6c044d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/commands/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ func determineDockerHost() (string, error) {
currentContext = cf.CurrentContext
}

if currentContext == "" {
// On some systems (windows) `default` is stored in the docker config as the currentContext.
if currentContext == "" || currentContext == "default" {
// If a docker context is neither specified via the "DOCKER_CONTEXT" environment variable nor via the
// $HOME/.docker/config file, then we fall back to connecting to the "default docker host" meant for
// the host operating system.
Expand Down

0 comments on commit f6c044d

Please # to comment.