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

[Carry 362] support detach-netns #379

Merged
merged 2 commits into from Jun 29, 2023

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Jun 29, 2023

Planned to be used for:

  • accelerating (and deflaking) nerdctl pull and nerdctl build
  • supporting nerdctl run --net=host

This commit is based on PR #362 (originally authored by @fahedouch), but almost rewritten from scratch.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda added this to the v2.0.0 milestone Jun 29, 2023
@AkihiroSuda AkihiroSuda mentioned this pull request Jun 29, 2023
@AkihiroSuda AkihiroSuda marked this pull request as ready for review June 29, 2023 09:43
@AkihiroSuda AkihiroSuda force-pushed the carry-362 branch 2 times, most recently from 799254a to 3e77937 Compare June 29, 2023 09:58
Planned to be used for:
- accelerating (and deflaking) `nerdctl pull` and `nerdctl build`
- supporting `nerdctl run --net=host`

This commit is based on PR 362 (originally authored by Fahed Dorgaa),
but almost rewritten from scratch.

Co-authored-by: fahed dorgaa <fahed.dorgaa@gmail.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda merged commit 99b2c78 into rootless-containers:master Jun 29, 2023
5 checks passed
return err
}
// this is hard (not impossible though) to reimplement in Go: https://github.com/cloudflare/slirpnetstack/commit/d7766a8a77f0093d3cb7a94bd0ccbe3f67d411ba
cmd := exec.Command("unshare", "-n", "mount", "--bind", "/proc/self/ns/net", p)
Copy link
Contributor

@fahedouch fahedouch Jul 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed. It was hard to implement this in my previous PR too but the link example should help us ;)

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.

None yet

2 participants