summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/container_internal.go5
-rw-r--r--libpod/oci.go1
2 files changed, 1 insertions, 5 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index db1cf6c99..9bb45a08a 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -734,11 +734,6 @@ func (c *Container) start() error {
}
logrus.Debugf("Started container %s", c.ID())
- // We need to pick up full container state, including PID.
- if err := c.runtime.ociRuntime.updateContainerStatus(c, true); err != nil {
- return err
- }
-
return c.save()
}
diff --git a/libpod/oci.go b/libpod/oci.go
index e8a97226a..d3ce70133 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -441,6 +441,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
}
return errors.Wrapf(ErrInternal, "container create failed")
}
+ ctr.state.PID = ss.si.Pid
case <-time.After(ContainerCreateTimeout):
return errors.Wrapf(ErrInternal, "container creation timeout")
}