mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 07:11:01 +00:00
fix lazydocker breaking when having default docker explicitly mentioned in docker config
This commit is contained in:
parent
80af149b02
commit
f6c044d74f
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue