mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Merge pull request #33066 from Random-Liu/set-docker-client-version
Automatic merge from submit-queue Add docker client version. Addressed https://github.com/kubernetes/kubernetes/issues/29478#issuecomment-248197665. This partially reverted #31540, because currently we are really trying to connect to docker daemon when creating the client. This PR updated docker client with real docker apiversion with `UpdateClientVersion`, so that the version related logic of engine-api can work properly, such as https://github.com/docker/engine-api/pull/174/files. @yujuhong @feiskyer
This commit is contained in:
@@ -126,7 +126,7 @@ func UnsecuredKubeletDeps(s *options.KubeletServer) (*kubelet.KubeletDeps, error
|
||||
|
||||
var dockerClient dockertools.DockerInterface
|
||||
if s.ContainerRuntime == "docker" {
|
||||
dockerClient = dockertools.CreateDockerClientOrDie(s.DockerEndpoint, s.RuntimeRequestTimeout.Duration)
|
||||
dockerClient = dockertools.ConnectToDockerOrDie(s.DockerEndpoint, s.RuntimeRequestTimeout.Duration)
|
||||
} else {
|
||||
dockerClient = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user