summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-10-25 14:11:44 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-11-07 11:36:01 -0500
commitc9e9ca5671775652b2e097641713084ea367a7fa (patch)
tree5174a53d5396f764b2621f5f0791d96df546acaf /libpod/container_internal.go
parent0f45403c9ba5eace4b48bad2b86ad540bae3435d (diff)
downloadpodman-c9e9ca5671775652b2e097641713084ea367a7fa.tar.gz
podman-c9e9ca5671775652b2e097641713084ea367a7fa.tar.bz2
podman-c9e9ca5671775652b2e097641713084ea367a7fa.zip
Properly set Running state when starting containers
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 9bb45a08a..5221ac5b6 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -734,6 +734,8 @@ func (c *Container) start() error {
}
logrus.Debugf("Started container %s", c.ID())
+ c.state.State = ContainerStateRunning
+
return c.save()
}