Merge pull request #2273 from mheon/preserve_exited_state

Preserve exited state across reboot
This commit is contained in:
OpenShift Merge Robot
2019-02-06 14:00:43 +01:00
committed by GitHub

View File

@@ -392,7 +392,9 @@ func resetState(state *ContainerState) error {
state.PID = 0
state.Mountpoint = ""
state.Mounted = false
state.State = ContainerStateConfigured
if state.State != ContainerStateExited {
state.State = ContainerStateConfigured
}
state.ExecSessions = make(map[string]*ExecSession)
state.NetworkStatus = nil
state.BindMounts = make(map[string]string)