diff --git a/runtime/container.go b/runtime/container.go index 079e6b8..7494a89 100644 --- a/runtime/container.go +++ b/runtime/container.go @@ -246,8 +246,8 @@ func (c *container) Delete() error { args := c.runtimeArgs args = append(args, "delete", c.id) - if derr := exec.Command(c.runtime, args...).Run(); err == nil { - err = derr + if b, derr := exec.Command(c.runtime, args...).CombinedOutput(); err != nil { + err = fmt.Errorf("%s: %q", derr, string(b)) } return err }