mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Stop using deprecated method
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -73,7 +73,7 @@ type Interface interface {
|
||||
func getDockerClient(dockerEndpoint string) (*dockerapi.Client, error) {
|
||||
if len(dockerEndpoint) > 0 {
|
||||
klog.Infof("Connecting to docker on %s", dockerEndpoint)
|
||||
return dockerapi.NewClient(dockerEndpoint, "", nil, nil)
|
||||
return dockerapi.NewClientWithOpts(dockerapi.WithHost(dockerEndpoint), dockerapi.WithVersion(""))
|
||||
}
|
||||
return dockerapi.NewClientWithOpts(dockerapi.FromEnv)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user