-
Notifications
You must be signed in to change notification settings - Fork 27
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
pivot_root fails with user namespace used #14
Comments
Or add an |
Hi! I'm not sure it's because of user namespace. Isn't it because I'm all for adding documentation describing the issue. But I don't think this should be done always. Adding a convenience method may be okay, though. |
Thanks for the prompt response! Yeah, I did make sure the |
pivot_root
succeeds if user namespace is not used, but fails withEINVAL
(os error 22). Bind mounting thenew_root
to itself solves it. I think that's a hack used bygo
example as well. Maybe theCloneCb
should include this logic?Environment: Xenial
4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: