Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80af149 commit f6c044dCopy full SHA for f6c044d
1 file changed
pkg/commands/docker.go
@@ -345,7 +345,8 @@ func determineDockerHost() (string, error) {
345
currentContext = cf.CurrentContext
346
}
347
348
- if currentContext == "" {
+ // On some systems (windows) `default` is stored in the docker config as the currentContext.
349
+ if currentContext == "" || currentContext == "default" {
350
// If a docker context is neither specified via the "DOCKER_CONTEXT" environment variable nor via the
351
// $HOME/.docker/config file, then we fall back to connecting to the "default docker host" meant for
352
// the host operating system.
0 commit comments