我只是从 reposirotyr git clone,并配置所有环境,最后在我安装之后,我的 podman 版本 printf 这个:
root@PS-03:/opt/go/src/github.com/containers/libpod# podman version
ERRO[0000] Error loading CNI config file /etc/cni/net.d/99-loopback.conf: error parsing configuration: missing 'type'
Version: 3.2.0-dev
API Version: 3.2.0-dev
Go Version: go1.16.3
Git Commit: d6ec38f2eec6c9ac9e11db5cbf949a357fa13f28
Built: Sat May 1 16:21:00 2021
OS/Arch: linux/amd64
我的 /etc/cni/net.d/99-loopback.conf 内容是:
root@PS-03:/opt/go/src/github.com/containers/libpod# more /etc/cni/net.d/99-loopback.conf
{
"cniVersion": "0.4.0",
"name": "podman",
"plugins": [
{
"type": "bridge",
"bridge": "cni-podman0",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [{ "dst": "0.0.0.0/0" }],
"ranges": [
[
{
"subnet": "10.88.0.0/16",
"gateway": "10.88.0.1"
}
]
]
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
}
},
{
"type": "firewall"
},
{
"type": "tuning"
}
]
}
有人可以帮助我吗?tks。