diff options
Diffstat (limited to 'runsc/boot/controller.go')
-rw-r--r-- | runsc/boot/controller.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runsc/boot/controller.go b/runsc/boot/controller.go index c6e934e66..fc6ea326a 100644 --- a/runsc/boot/controller.go +++ b/runsc/boot/controller.go @@ -285,7 +285,10 @@ func (cm *containerManager) Restore(o *RestoreOpts, _ *struct{}) error { fs.SetRestoreEnvironment(*renv) // Prepare to load from the state file. - networkStack := newEmptyNetworkStack(cm.l.conf, k) + networkStack, err := newEmptyNetworkStack(cm.l.conf, k) + if err != nil { + return fmt.Errorf("failed to create network: %v", err) + } info, err := o.FilePayload.Files[0].Stat() if err != nil { return err |