mirror of
https://github.com/containers/podman.git
synced 2025-12-11 01:11:30 +08:00
Merge pull request #2273 from mheon/preserve_exited_state
Preserve exited state across reboot
This commit is contained in:
@@ -392,7 +392,9 @@ func resetState(state *ContainerState) error {
|
|||||||
state.PID = 0
|
state.PID = 0
|
||||||
state.Mountpoint = ""
|
state.Mountpoint = ""
|
||||||
state.Mounted = false
|
state.Mounted = false
|
||||||
state.State = ContainerStateConfigured
|
if state.State != ContainerStateExited {
|
||||||
|
state.State = ContainerStateConfigured
|
||||||
|
}
|
||||||
state.ExecSessions = make(map[string]*ExecSession)
|
state.ExecSessions = make(map[string]*ExecSession)
|
||||||
state.NetworkStatus = nil
|
state.NetworkStatus = nil
|
||||||
state.BindMounts = make(map[string]string)
|
state.BindMounts = make(map[string]string)
|
||||||
|
|||||||
Reference in New Issue
Block a user