wget https://down.avi.gs/https://github.com/containernetworking/plugins/releases/download/v1.3.0/cni-plugins-linux-amd64-v1.3.0.tgz
mkdir -p /opt/cni/bin/
tar -zxvf cni-plugins-linux-amd64-v1.3.0.tgz -C /opt/cni/bin/
修改isulad daemon.json文件,配置cni
vim /etc/isulad/daemon.json
...
"cni-bin-dir": "/opt/cni/bin",
"cni-conf-dir": "/etc/cni/net.d",
...
systemctl restart isulad
cni-bin-dir
为cni二进制文件的目录,不配置默认为/opt/cni/bin
,cni-conf-dir
为网络配置文件的目录,不配置默认为/etc/cni/net.d
。若使用默认的目录,可不配置daemon.json
文件,直接启动isulad。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容