发布日期: 2025-06-05
版本号: v5.5.1

本次更新修复了多项漏洞并更新了依赖库。主要修复了容器挂载卷到根目录时可能覆盖系统目录的问题,解决了 Quadlet Pod 单元因存储未挂载而启动失败、容器 DNS 配置未包含主机搜索域以及 --dns-opt 选项替换行为不正确的情况。同时修正了 podman kube play 命令中不必要的网络别名、podman system df 在特定容器类型下的崩溃问题,以及 log_tag 配置项与命令行选项的冲突。此外还修复了 SQLite 后端下卷名中下划线字符的处理问题,以及 Windows 远程客户端无法使用 overlay 挂载本地文件夹的故障。在 API 方面,修正了 Libpod 容器创建接口中 rlimits 值为 -1 的处理逻辑,以及 Compat 接口中空数组入口点被忽略的问题。最后,Buildah 更新至 v1.40.1,containers/common 库更新至 v0.63.1。

更新内容 (中文)

缺陷修复

  • 修复了将卷挂载到 / 的容器可能覆盖 /proc 等重要目录的错误,该问题由挂载顺序引起,会导致容器启动和/或运行时失败(#26161)。
  • 修复了 Quadlet .pod 单元可能因存储未挂载而启动失败的错误(#26190)。
  • 修复了加入启用了 DNS 的网络的容器不会在其 resolv.conf 中包含主机搜索域的错误(#24713)。
  • 修复了 podman createpodman runpodman pod create--dns-opt 选项会将选项追加到容器的 resolv.conf 中,而不是替换它们的错误(#22399)。
  • 修复了 podman kube play 命令会为未指定名称的容器添加空网络别名,导致 Netavark 发出多余警告的错误。
  • 修复了 podman system df 命令在创建使用根文件系统的容器(podman createpodman run--rootfs 选项)而不是从镜像创建的容器时会崩溃的错误(#26224)。
  • 修复了 containers.conf 中的 log_tag 字段会覆盖 podman createpodman run--log-opt tag=value 选项的错误(#26236)。
  • 修复了在使用 SQLite 数据库后端时,podman volume rmpodman volume inspect 命令会错误处理包含 _ 字符的卷名称的错误(#26168)。
  • 修复了 Windows 上的 Podman 远程客户端无法使用 overlay 挂载(-v source:destination:O)将本地文件夹挂载到容器中的错误(#25988)。

API

  • 修复了容器 Libpod Create API 中指定值为 -1 的 rlimits 会导致错误,而不是被解释为最大可能值的错误(#24886)。
  • 修复了容器 Compat Create API 中指定入口点为 [](空数组)会被忽略,而不是设置空入口点的错误(#26078)。

杂项

  • 将 Buildah 更新至 v1.40.1
  • 将 containers/common 库更新至 v0.63.1

更新内容 (原始)

Bugfixes

  • Fixed a bug where containers mounting a volume to / could overmount important directories such as /proc causing start and/or runtime failures due to an issue with mount ordering (#26161).
  • Fixed a bug where Quadlet .pod units could fail to start due to their storage not being mounted (#26190).
  • Fixed a bug where containers joined to a network with DNS enabled would not include the host’s search domains in their resolv.conf (#24713).
  • Fixed a bug where the --dns-opt option to podman create, podman run, and podman pod create would append options to the container’s resolv.conf, instead of replacing them (#22399).
  • Fixed a bug where the podman kube play command would add an empty network alias for containers created with no name specified, causing Netavark to emit extraneous warnings.
  • Fixed a bug where the podman system df command would panic when one or more containers were created using a root filesystem (the --rootfs option to podman create and podman run) instead of from an image (#26224).
  • Fixed a bug where the log_tag field in containers.conf would override the --log-opt tag=value option to podman create and podman run (#26236).
  • Fixed a bug where the podman volume rm and podman volume inspect commands would incorrectly handle volume names containing the _ character when the SQLite database backend was in use (#26168).
  • Fixed a bug where the Podman remote client on Windows was unable to mount local folders into containers using overlay mounts (-v source:destination:O) (#25988).

API

  • Fixed a bug in the Libpod Create API for Containers where rlimits specified with a value of -1 were causing errors, instead of being interpreted as the maximum possible value (#24886).
  • Fixed a bug in the Compat Create API for Containers where specifying an entrypoint of [] (an empty array) was ignored, instead of setting an empty entrypoint (#26078).

Misc

  • Updated Buildah to v1.40.1
  • Updated the containers/common library to v0.63.1

下载链接