mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Check Docker init PID is valid before we use it.
This gives us an error if the PID is not returned as we expect.
This commit is contained in:
@@ -121,7 +121,10 @@ func (f *FakeDockerClient) StartContainer(id string, hostConfig *docker.HostConf
|
||||
Name: id, // For testing purpose, we set name to id
|
||||
Config: &docker.Config{Image: "testimage"},
|
||||
HostConfig: hostConfig,
|
||||
State: docker.State{Running: true},
|
||||
State: docker.State{
|
||||
Running: true,
|
||||
Pid: 42,
|
||||
},
|
||||
}
|
||||
return f.Err
|
||||
}
|
||||
|
Reference in New Issue
Block a user