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
{{ message }}
Repository navigation
[v2.3.0-rc.0 regression] rootless: "/run/containerd/containerd.sock": no such file or directory #13362
Starting with v2.3.0-rc.0, the rootless mode no longer works, as /run/containerd/containerd.sock is no longer created in the daemon's mount namespace (which is created with the daemon's user namespace, by RootlessKit):
$ nerdctl infoFATA[0000] cannot access containerd socket "/run/containerd/containerd.sock": no such file or directory
$ containerd-rootless-setuptool.sh nsenter -- ls /run/containerdcontainerd.sock.ttrpc io.containerd.mount-manager.v1.bolt io.containerd.sandbox.controller.v1.shimio.containerd.grpc.v1.cri io.containerd.runtime.v2.task
This is a regression in c15ec2485 ("Add server plugins for grpc and ttrpc") from:
Received: "/run/containerd/containerd.sock": no such file or directory
Expected: nerdctl should work, and "/run/containerd/containerd.sock" should be visible via containerd-rootless-setuptool.sh nsenter -- ls /run/containerd
Disable the failing CRI plugin in ~/.config/containerd/config.toml:
version = 3disabled_plugins = ["io.containerd.grpc.v1.cri"]
Cause of regression
Note
Written by Claude
15ec2485 moved the gRPC and TTRPC server initialization out of cmd/containerd/server/server.go into dedicated server plugins (plugins/server/grpc/plugin.go, plugins/server/ttrpc/plugin.go). Inside their InitFns the new plugins call ic.GetByType(plugins.GRPCPlugin) / ic.GetByType(plugins.TTRPCPlugin) to enumerate the services to register.
InitContext.GetByType (vendor/github.com/containerd/plugin/context.go:182) short-circuits on the first plugin whose Instance() returns an error — only plugin.ErrSkipPlugin is tolerated. Under rootless mode, the CRI plugin (io.containerd.grpc.v1.cri) fails because it cannot watch /etc/cni/net.d (permission denied). That single failure now propagates into the GRPC and TTRPC server plugins, so they never register and never call sys.GetLocalListener — hence containerd.sock is missing while sibling files (containerd.sock.ttrpc, the per-plugin state dirs) remain.
The pre-c15ec2485 path in server.go iterated loaded plugins itself, logged failures, and continued — failed plugins simply weren't appended to grpcServices / ttrpcServices, but the listeners were still created.
Activity
AkihiroSuda commentedon May 10, 2026
Workaround
Disable the failing CRI plugin in
~/.config/containerd/config.toml:Cause of regression
Note
Written by Claude
server: tolerate failed gRPC plugins when starting listeners
server: tolerate failed gRPC plugins when starting listeners