Skip to content

Commit

Permalink
Merge pull request #2273 from mheon/preserve_exited_state
Browse files Browse the repository at this point in the history
Preserve exited state across reboot
  • Loading branch information
openshift-merge-robot authored Feb 6, 2019
2 parents e249966 + 3c52acc commit a9f75bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libpod/container_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9f75bf

Please sign in to comment.