From e46a06ecf6c028776c0e28b5689ff7d8a9e7d43c Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 16 Sep 2020 18:38:36 +0900 Subject: Fix "rootless-cni-infra + runc fails with ENODEV" runc always expect "bind" to be present in opts even when the type is "bind". Fix #7652 Signed-off-by: Akihiro Suda --- libpod/rootless_cni_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/rootless_cni_linux.go b/libpod/rootless_cni_linux.go index 31097dd16..7feec6b44 100644 --- a/libpod/rootless_cni_linux.go +++ b/libpod/rootless_cni_linux.go @@ -255,7 +255,7 @@ func startRootlessCNIInfraContainer(ctx context.Context, r *Runtime) (*Container Destination: "/etc/cni/net.d", Type: "bind", Source: r.config.Network.NetworkConfigDir, - Options: []string{"ro"}, + Options: []string{"ro", "bind"}, } g.AddMount(etcCNINetD) -- cgit v1.2.3-54-g00ecf