Merge pull request #1871 from Ace-Tang/add_mask_restore

cr: don't restore net namespace by default
This commit is contained in:
Michael Crosby 2018-08-21 10:05:14 -04:00 committed by GitHub
commit 9744d7958a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ using the runc checkpoint command.`,
return err
}
options := criuOptions(context)
if err := setEmptyNsMask(context, options); err != nil {
return err
}
status, err := startContainer(context, spec, CT_ACT_RESTORE, options)
if err != nil {
return err