Merge pull request #8576 from afbjorklund/image-client
cache: Only use docker client for docker runtimepull/8698/head
commit
1467e8f7c4
|
@ -83,10 +83,12 @@ func LoadImages(cc *config.ClusterConfig, runner command.Runner, images []string
|
||||||
return errors.Wrap(err, "runtime")
|
return errors.Wrap(err, "runtime")
|
||||||
}
|
}
|
||||||
|
|
||||||
imgClient, err := client.NewClientWithOpts(client.FromEnv) // image client
|
var imgClient *client.Client
|
||||||
if err != nil {
|
if cr.Name() == "Docker" {
|
||||||
glog.Infof("couldn't get a local image daemon which might be ok: %v", err)
|
imgClient, err = client.NewClientWithOpts(client.FromEnv) // image client
|
||||||
imgClient = nil
|
if err != nil {
|
||||||
|
glog.Infof("couldn't get a local image daemon which might be ok: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, image := range images {
|
for _, image := range images {
|
||||||
|
|
Loading…
Reference in New Issue