Podman 发出警告 >无法从“/home/theuser/.config/containers/containers.conf

Podman 发出警告 >无法从“/home/theuser/.config/containers/containers.conf

我正在使用 Ubuntu 22.04.3 LTS 并拥有以下版本的 podman(podman version):

Version:      3.4.4
API Version:  3.4.4
Go Version:   go1.18.1
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

但是在 podman 中调用几乎任何命令都会出现这些错误:

$ podman version
WARN[0000] Failed to decode the keys ["configmaps"] from "/home/theuser/.config/containers/containers.conf". 
WARN[0000] Failed to decode the keys ["configmaps"] from "/home/theuser/.config/containers/containers.conf". 
WARN[0000] Failed to decode the keys ["configmaps"] from "/home/theuser/.config/containers/containers.conf". 
WARN[0000] Failed to decode the keys ["configmaps"] from "/home/theuser/.config/containers/containers.conf". 
WARN[0000] Error validating CNI config file /home/theuser/.config/cni/net.d/gitea-net.conflist: [plugin bridge does not support config version "1.0.0" plugin portmap does not support config version "1.0.0" plugin firewall does not support config version "1.0.0" plugin tuning does not support config version "1.0.0"]

我该如何应对这些警告?我的文件内容containers.conf如下:

[containers]
  log_size_max = -1
  pids_limit = 2048
  userns_size = 65536

[engine]
  num_locks = 2048
  stop_timeout = 10

[machine]

[network]

[secrets]

[configmaps]

请注意,目前尚无配置configmaps

答案1

从我的文件configmaps中删除该部分后,我设法摆脱了警告。containers.conf

我从@Daniel B 的评论和这个解释在容器的 github 中:conf 文件中根本没有这样的部分。

相关内容