Skip to content

Commit

Permalink
Merge pull request #552 from peauc/feature/issue-493
Browse files Browse the repository at this point in the history
fix lazydocker breaking when having default context in config
  • Loading branch information
jesseduffield authored Jul 21, 2024
2 parents 06ab7b7 + f6c044d commit c73b3f7
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 @@ -374,7 +374,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 c73b3f7

Please sign in to comment.