mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #2938 from vishh/exec
Updated docker version that supports exec to '1.3.0'.
This commit is contained in:
commit
2c64db5943
@ -92,8 +92,8 @@ type dockerContainerCommandRunner struct {
|
|||||||
client DockerInterface
|
client DockerInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// The first version of docker that supports exec natively is 1.1.3
|
// The first version of docker that supports exec natively is 1.3.0
|
||||||
var dockerVersionWithExec = []uint{1, 1, 3}
|
var dockerVersionWithExec = []uint{1, 3, 0}
|
||||||
|
|
||||||
// Returns the major and minor version numbers of docker server.
|
// Returns the major and minor version numbers of docker server.
|
||||||
func (d *dockerContainerCommandRunner) getDockerServerVersion() ([]uint, error) {
|
func (d *dockerContainerCommandRunner) getDockerServerVersion() ([]uint, error) {
|
||||||
|
@ -143,7 +143,7 @@ func TestGetDockerServerVersion(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestExecSupportExists(t *testing.T) {
|
func TestExecSupportExists(t *testing.T) {
|
||||||
fakeDocker := &FakeDockerClient{VersionInfo: docker.Env{"Client version=1.2", "Server version=1.1.3", "Server API version=1.15"}}
|
fakeDocker := &FakeDockerClient{VersionInfo: docker.Env{"Client version=1.2", "Server version=1.3.0", "Server API version=1.15"}}
|
||||||
runner := dockerContainerCommandRunner{fakeDocker}
|
runner := dockerContainerCommandRunner{fakeDocker}
|
||||||
useNativeExec, err := runner.nativeExecSupportExists()
|
useNativeExec, err := runner.nativeExecSupportExists()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user