微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

cni配置的podman安装问题

如何解决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”。现在看起来不错,希望可以正常运行。

>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。