-
Notifications
You must be signed in to change notification settings - Fork 85
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
Support specifying netns (and userns?) file path as well as PID #84
Comments
@AkihiroSuda thanks for opening this issue! The question I have is about the way to do this. Do you want to keep backward compatibility about providing a process ID that would be superseded by |
/cc @amshinde @gabibeyer |
We need to keep compatibility. The PID portion should be an empty string when --netns-path is present? |
cc @giuseppe |
@AkihiroSuda We would need to pass a user namespace path and a mount namespace path as well, if I am not mistaken. |
Just adding details of what was discussed with @giuseppe, from the |
@AkihiroSuda @giuseppe Would you rather an empty string for PID when --netns-path is passed, or don't allow the PID arg altogether, and only the single TAPNAME argument to be passed?
I'm working on a PR to solve this issue, thank you for the help ! |
I prefer the former one. I think we should also have |
could we reuse the same argument? We can consider it a path if it starts with slirp4netns /path/to/the/ns what do you think? |
No support for relative path? How to support specifying userns path? |
I'd expect the path to be mostly specified as slirp4netns --netns-path <PATH|PID> if --netns-path is specified then the first argument is a path, otherwise a pid, or alternatively: slirp4netns --netns-type=path <PATH|PID> so we don't have to deal with an empty argument |
slirp4netns --netns-type=path <PATH|PID> |
|
I have one proposal if you really want to make this generic. We could introduce |
I like @sboeuf's proposal to keep the existing |
@sboeuf I feel like the only problem with that is what the How about a hybrid approach, a 'no-argument' option so something like
if a user doesn't specify a |
I dont have a strong opinion - UX is out of scope of this repo, but IIUC we dont need the mntns stuff |
Allow a network namespace path to be passed instead of a PID by using the --use-netns-path argument, and passing a path as the first argument. An optional --userns-path=PATH argument can be passed that will be supersede the default user namespace path. Fixes rootless-containers#84 Signed-off-by: Gabi Beyer <[email protected]>
Allow a network namespace path to be passed instead of a PID by using the --use-netns-path argument, and passing a path as the first argument. An optional --userns-path=PATH argument can be passed that will be supersede the default user namespace path. Fixes rootless-containers#84 Signed-off-by: Gabi Beyer <[email protected]>
Allow a network namespace path to be passed instead of a PID by using the --use-netns-path argument, and passing a path as the first argument. An optional --userns-path=PATH argument can be passed that will be supersede the default user namespace path. Fixes rootless-containers#84 Signed-off-by: Gabi Beyer <[email protected]>
Allow a network namespace path to be passed instead of a PID by using the --use-netns-path argument, and passing a path as the first argument. An optional --userns-path=PATH argument can be passed that will be supersede the default user namespace path. Fixes rootless-containers#84 Signed-off-by: Gabi Beyer <[email protected]>
Allow a network namespace path to be passed instead of a PID by using the --use-netns-path argument, and passing a path as the first argument. An optional --userns-path=PATH argument can be passed that will be supersede the default user namespace path. Fixes rootless-containers#84 Signed-off-by: Gabi Beyer <[email protected]>
proposed in containers/podman#2897
The text was updated successfully, but these errors were encountered: