@@ -28,7 +28,7 @@ import (
28
28
"github.com/openshift/origin/pkg/volume/emptydir"
29
29
)
30
30
31
- const minimumDockerAPIVersionWithPullByID = "1.18 "
31
+ const minimumDockerAPIVersionWithPullByID = "1.22 "
32
32
33
33
// EnsureKubeletAccess performs a number of test operations that the Kubelet requires to properly function.
34
34
// All errors here are fatal.
@@ -127,7 +127,7 @@ func (c *NodeConfig) EnsureDocker(docker *dockerutil.Helper) {
127
127
}
128
128
129
129
if serverVersion .LessThan (minimumPullByIDVersion ) {
130
- c .HandleDockerError (fmt .Sprintf ("Docker 1.6 or later (server API version 1.18 or later) required." ))
130
+ c .HandleDockerError (fmt .Sprintf ("Docker 1.6 or later (server API version %s or later) required." , minimumDockerAPIVersionWithPullByID ))
131
131
return
132
132
}
133
133
@@ -140,7 +140,15 @@ func (c *NodeConfig) HandleDockerError(message string) {
140
140
glog .Fatalf ("error: %s" , message )
141
141
}
142
142
glog .Errorf ("WARNING: %s" , message )
143
- c .DockerClient = & dockertools.FakeDockerClient {VersionInfo : dockertypes.Version {APIVersion : "1.18" }}
143
+ c .DockerClient = & dockertools.FakeDockerClient {
144
+ VersionInfo : dockertypes.Version {
145
+ APIVersion : minimumDockerAPIVersionWithPullByID ,
146
+ Version : "1.13" ,
147
+ },
148
+ Information : dockertypes.Info {
149
+ CgroupDriver : "systemd" ,
150
+ },
151
+ }
144
152
}
145
153
146
154
// EnsureVolumeDir attempts to convert the provided volume directory argument to
0 commit comments