cni配置的podman安装问题

问题描述

我只是从 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。

解决方法

太难了,我把99-loopback.conf文件删了,改用默认的配置文件“87-podman-bridge.conflist”。现在看起来不错,希望可以正常运行。

>