mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +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.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)
|
||||
|
||||
Reference in New Issue
Block a user