mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Stop using deprecated method
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
8e8e15357b
commit
7368359782
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user