|
|
@ -38,12 +38,7 @@ func (f *factory) New(ctx context.Context, cfg driver.InitConfig) (driver.Driver
|
|
|
|
return nil, errors.Errorf("%s driver requires docker API access", f.Name())
|
|
|
|
return nil, errors.Errorf("%s driver requires docker API access", f.Name())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
v, err := cfg.DockerAPI.ServerVersion(ctx)
|
|
|
|
return &Driver{factory: f, InitConfig: cfg}, nil
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, errors.Wrapf(driver.ErrNotConnecting, err.Error())
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return &Driver{factory: f, InitConfig: cfg, version: v}, nil
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (f *factory) AllowsInstances() bool {
|
|
|
|
func (f *factory) AllowsInstances() bool {
|
|
|
|