mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 11:36:56 +00:00
kata-manager: Copy cni files under /opt/cni
nerdctl requires cni plugins to be installed in /opt/cni/bin Without bridge plugin installed, it is not possible to run a container with nerdctl. The downloaded nerdctl tarball contains cni plugin files, but are extracted under /usr/local/libexec. Copy extracted tarball cni files under /usr/local/libexec to /opt/cni/bin Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
6ca0f09710
commit
d23d58a484
@ -584,6 +584,14 @@ install_nerdctl()
|
|||||||
done
|
done
|
||||||
|
|
||||||
info "$project installed\n"
|
info "$project installed\n"
|
||||||
|
|
||||||
|
sudo mkdir -p /opt/cni/bin
|
||||||
|
|
||||||
|
# nerdctl requires cni plugins to be installed in /opt/cni/bin
|
||||||
|
# Copy extracted tarball cni files under /usr/local/libexec
|
||||||
|
sudo cp /usr/local/libexec/cni/* /opt/cni/bin/
|
||||||
|
|
||||||
|
info "cni plugins installed under /opt/cni/bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_containerd()
|
configure_containerd()
|
||||||
|
Loading…
Reference in New Issue
Block a user