From f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 16 Apr 2019 14:12:12 +0200 Subject: runtime: pass down the context Signed-off-by: Giuseppe Scrivano --- libpod/runtime_migrate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpod/runtime_migrate.go') diff --git a/libpod/runtime_migrate.go b/libpod/runtime_migrate.go index 7d7fa108d..a084df289 100644 --- a/libpod/runtime_migrate.go +++ b/libpod/runtime_migrate.go @@ -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()) } } -- cgit v1.2.3-54-g00ecf