You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm leaning toward to bump up the major version (ahead of containerd v2), as this PR significantly changes the design of the rootless mode
Note
Rootless containerd recognizes the following environment variables to configure the behavior of RootlessKit:
...
CONTAINERD_ROOTLESS_ROOTLESSKIT_DETACH_NETNS=(auto|true|false): whether to launch rootlesskit with the "detach-netns" mode.
Defaults to "auto", which is resolved to "true" if RootlessKit >= 2.0 is installed.
The "detached-netns" mode accelerates nerdctl (pull|push|build) and enables nerdctl run --net=host,
however, there is a relatively minor drawback with the current version of BuildKit:
the host loopback IP address (127.0.0.1) is exposed to Dockerfile's "RUN" instructions during nerdctl build (not nerdctl run).
If you want to hide 127.0.0.1 from "RUN" instructions, you should set CONTAINERD_ROOTLESS_ROOTLESSKIT_DETACH_NETNS to "false".
To set these variables, create ~/.config/systemd/user/containerd.service.d/override.conf as follows:
Planning to release v2.0 or v1.8 after merging:
I'm leaning toward to bump up the major version (ahead of containerd v2), as this PR significantly changes the design of the rootless mode
Note
Rootless containerd recognizes the following environment variables to configure the behavior of RootlessKit:
CONTAINERD_ROOTLESS_ROOTLESSKIT_DETACH_NETNS=(auto|true|false): whether to launch rootlesskit with the "detach-netns" mode.Defaults to "auto", which is resolved to "true" if RootlessKit >= 2.0 is installed.
The "detached-netns" mode accelerates
nerdctl (pull|push|build)and enablesnerdctl run --net=host,however, there is a relatively minor drawback with the current version of BuildKit:
the host loopback IP address (127.0.0.1) is exposed to Dockerfile's "RUN" instructions during
nerdctl build(notnerdctl run).If you want to hide 127.0.0.1 from "RUN" instructions, you should set
CONTAINERD_ROOTLESS_ROOTLESSKIT_DETACH_NETNSto "false".To set these variables, create
~/.config/systemd/user/containerd.service.d/override.confas follows:And then run the following commands:
cc @containerd/nerdctl-maintainers