runtime: pass down the context

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2019-04-16 14:12:12 +02:00
parent 525f0b30ac
commit f49e0c19ed
80 changed files with 109 additions and 89 deletions

View File

@ -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())
}
}