summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-06 14:00:43 +0100
committerGitHub <noreply@github.com>2019-02-06 14:00:43 +0100
commita9f75bf87b56e132a636ec92a8d185a80a0e12aa (patch)
tree24d75afd5e922f9e130c3e94a3d5f5f69c359686
parente249966e72cfda9fbf7222fe6747d9f918ca6f69 (diff)
parent3c52accbc9c290286f78334765f8b1b0c38140af (diff)
downloadpodman-a9f75bf87b56e132a636ec92a8d185a80a0e12aa.tar.gz
podman-a9f75bf87b56e132a636ec92a8d185a80a0e12aa.tar.bz2
podman-a9f75bf87b56e132a636ec92a8d185a80a0e12aa.zip
Merge pull request #2273 from mheon/preserve_exited_state
Preserve exited state across reboot
-rw-r--r--libpod/container_internal.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 39c1501da..b0dcc853e 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -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)