mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-24 16:11:04 +00:00
Merge pull request #552 from peauc/feature/issue-493
fix lazydocker breaking when having default context in config
This commit is contained in:
commit
c73b3f7cc0
1 changed files with 2 additions and 1 deletions
|
|
@ -374,7 +374,8 @@ func determineDockerHost() (string, error) {
|
||||||
currentContext = cf.CurrentContext
|
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
|
// 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
|
// $HOME/.docker/config file, then we fall back to connecting to the "default docker host" meant for
|
||||||
// the host operating system.
|
// the host operating system.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue