Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cr: don't restore net namespace by default #1871

Merged
merged 1 commit into from
Aug 21, 2018
Merged

cr: don't restore net namespace by default #1871

merged 1 commit into from
Aug 21, 2018

Conversation

Ace-Tang
Copy link
Contributor

since runc don't manage net device and their configuration, checkpoint
also don't dump net namespace by default, so set 'nsmask = unix.CLONE_NEWNET'
by default in restore. Or if user do not pass 'empty-ns network', criu will
cost extra time in restore.

Signed-off-by: Ace-Tang [email protected]

since runc don't manage net device and their configuration, checkpoint
also don't dump net namespace by default, so set 'nsmask = unix.CLONE_NEWNET'
by default in restore. Or if user do not pass 'empty-ns network', criu will
cost extra time in restore.

Signed-off-by: Ace-Tang <[email protected]>
@Ace-Tang
Copy link
Contributor Author

/cc @avagin , please check this, thanks.

@avagin
Copy link
Contributor

avagin commented Aug 18, 2018

LGTM, thanks!

Approved with PullApprove

@crosbymichael
Copy link
Member

Is there a way to tell criu to use an external namespace? Just trying to think how this all fits together.

@Ace-Tang
Copy link
Contributor Author

As I know, criu do not know container network info, so it do not need to restore net namespace when runc do restore. I found #1849 support to c/r a externel network, the way seems not conflict with my pr, but I am not sure about this. I want @avagin help to check this, thanks.

@crosbymichael
Copy link
Member

crosbymichael commented Aug 21, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 9744d79 into opencontainers:master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants