-
Notifications
You must be signed in to change notification settings - Fork 630
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
"ns:" network mode to use existing network namespace #3538
Conversation
b6a6358
to
1ffe23d
Compare
Looks like there is one failing test ( |
Yes, ignore it. I will send a pr to skip it |
Can we have an integration test? |
Yes, I'll work on that today. |
ebe7674
to
92a5288
Compare
I just fixed a batch of test failures but it looks like there are still some failures, I’ll keep digging into those. |
92a5288
to
8dbba65
Compare
Signed-off-by: Dan Cavallaro <dan.t.cavallaro@gmail.com>
8dbba65
to
fc1848b
Compare
OK, all checks are passing now. I've added a new integration test that essentially does the same testing I was doing in manual testing (described above). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Thanks for all your help @AkihiroSuda! Is there any approximate timeline for the 2.0.0 release or the next RC? |
Description
Fixes #3246, allowing containers to be run inside existing network namespaces.
I've read the contribution guide, signed off on my commit, and updated the command reference documentation, but please let me know if there's anything else you'd like me to do.
Testing
I first manually create a new Linux network namespace, create a dummy interface in it, and give it an address:
Then use my build of nerdctl to run an Nginx container in this netns, using the new
ns:
networking mode:Finally, we can access the Nginx server by curl'ing the dummy interface address inside the netns:
The new parameter is supported in Docker Compose, as well. Here's my
docker-compose.yml
file I used for testing:Spin up the container:
And test it again: