Add instructions to resolve docker context error (#19197)

pull/19783/head
Steven Powell 2024-10-09 13:36:38 -05:00 committed by GitHub
parent 48cd79581a
commit 42cbdf6ec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ func propagateDockerContextToEnv() {
md, err := st.GetMetadata(currentContext)
if err != nil {
klog.Warningf("Unable to resolve the current Docker CLI context %q: %v", currentContext, err)
klog.Warningf("Try running `docker context use %s` to resolve the above error", currentContext)
return
}
dockerEP, ok := md.Endpoints[ddocker.DockerEndpoint]