diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2020-09-16 18:38:36 +0900 |
---|---|---|
committer | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2020-09-16 18:38:36 +0900 |
commit | e46a06ecf6c028776c0e28b5689ff7d8a9e7d43c (patch) | |
tree | 66bc92359c596f77554e1acc029e6406af04e9e9 /libpod/rootless_cni_linux.go | |
parent | b9c47fa40bc503e155a528174974293c6b053ec2 (diff) | |
download | podman-e46a06ecf6c028776c0e28b5689ff7d8a9e7d43c.tar.gz podman-e46a06ecf6c028776c0e28b5689ff7d8a9e7d43c.tar.bz2 podman-e46a06ecf6c028776c0e28b5689ff7d8a9e7d43c.zip |
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>
Diffstat (limited to 'libpod/rootless_cni_linux.go')
-rw-r--r-- | libpod/rootless_cni_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |