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 <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2020-09-16 18:38:36 +09:00
parent b9c47fa40b
commit e46a06ecf6

View File

@ -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)