Skip to content

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Jan 11, 2024

RootlessKit v2 added the support for --detach-netns mode.

This leaves containerd and buildkitd in the host netns so as to:

  • Eliminate the slirp overhead for pull/push
  • Allow accessing the real localhost registry.

Since rootless users has no CAP_NET_ADMIN in the host netns, CNI plugins have to be executed in the "detached" netns ($ROOTLESSKIT_STATE_DIR/netns) that is associated with slirp.

ref:

@AkihiroSuda
Copy link
Member Author

Rebased

@AkihiroSuda
Copy link
Member Author

@tonistiigi Can we have a new beta after merging this?

RootlessKit v2 added the support for `--detach-netns` mode.

This leaves containerd and buildkitd in the host netns so as to:
- Eliminate the slirp overhead for pull/push
- Allow accessing the real localhost registry.

Since rootless users has no `CAP_NET_ADMIN` in the host netns,
CNI plugins have to be executed in the "detached" netns (`$ROOTLESSKIT_STATE_DIR/netns`)
that is associated with slirp.

ref:
- rootless-containers/rootlesskit PR 379
- containerd/nerdctl PR 2723

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Member Author

Rebased

@tonistiigi tonistiigi merged commit 016b559 into moby:master Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rootless rootless mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants