Skip to content

[Carry 362] support detach-netns#379

Merged
AkihiroSuda merged 2 commits intorootless-containers:masterfrom
AkihiroSuda:carry-362
Jun 29, 2023
Merged

[Carry 362] support detach-netns#379
AkihiroSuda merged 2 commits intorootless-containers:masterfrom
AkihiroSuda:carry-362

Conversation

@AkihiroSuda
Copy link
Copy Markdown
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
Comment thread pkg/child/child.go
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
Copy Markdown
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.

2 participants