mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +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
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user