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

Does runc supports restoring a process in an existing namespace #2562

Open
gitsvm opened this issue Aug 20, 2020 · 2 comments
Open

Does runc supports restoring a process in an existing namespace #2562

gitsvm opened this issue Aug 20, 2020 · 2 comments

Comments

@gitsvm
Copy link

gitsvm commented Aug 20, 2020

Does runc support restoring a process in an existing namespace as CRIU does?

@XiaodongLoong
Copy link
Contributor

XiaodongLoong commented Aug 31, 2020

Yes.
First, a container is a process in the view of OS, and the process have independent namespace.
The code is shown blow,
(1) checkout a container
https://github.com/opencontainers/runc/blob/master/main.go#L112
(2)restore a container
https://github.com/opencontainers/runc/blob/master/main.go#L122
The runc call the interface of CRIU to do c/r for container.

I expect the reply can help you!

@gitsvm
Copy link
Author

gitsvm commented Sep 13, 2020

Thanks for the help.
Actually my question was, after i restore a container, is it possible to again restore another process/process tree into that existing restored container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants