mirror of
https://github.com/containers/podman.git
synced 2025-05-26 03:47:53 +08:00
Carry CRI-O #1206 to fix a potential runtime issue
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
@ -302,7 +302,7 @@ func (r *OCIRuntime) createContainer(ctr *Container, cgroupParent string) (err e
|
||||
func (r *OCIRuntime) updateContainerStatus(ctr *Container) error {
|
||||
state := new(spec.State)
|
||||
|
||||
out, err := exec.Command(r.path, "state", ctr.ID()).CombinedOutput()
|
||||
out, err := exec.Command(r.path, "state", ctr.ID()).Output()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error getting container %s state. stderr/out: %s", ctr.ID(), out)
|
||||
}
|
||||
|
Reference in New Issue
Block a user