mirror of
https://github.com/containers/podman.git
synced 2025-08-24 10:04:57 +08:00
runtime: pass down the context
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package libpod
|
||||
|
||||
import (
|
||||
"context"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
@ -39,7 +38,7 @@ func (r *Runtime) migrate() error {
|
||||
}
|
||||
|
||||
for _, ctr := range runningContainers {
|
||||
if err := ctr.Start(context.Background(), true); err != nil {
|
||||
if err := ctr.Start(r.ctx, true); err != nil {
|
||||
logrus.Errorf("error restarting container %s", ctr.ID())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user