mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
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:
@ -255,7 +255,7 @@ func startRootlessCNIInfraContainer(ctx context.Context, r *Runtime) (*Container
|
|||||||
Destination: "/etc/cni/net.d",
|
Destination: "/etc/cni/net.d",
|
||||||
Type: "bind",
|
Type: "bind",
|
||||||
Source: r.config.Network.NetworkConfigDir,
|
Source: r.config.Network.NetworkConfigDir,
|
||||||
Options: []string{"ro"},
|
Options: []string{"ro", "bind"},
|
||||||
}
|
}
|
||||||
g.AddMount(etcCNINetD)
|
g.AddMount(etcCNINetD)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user