podman v5.5.1 版本更新介绍
发布日期: 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 create、podman run和podman pod create的--dns-opt选项会将选项追加到容器的resolv.conf中,而不是替换它们的错误(#22399)。 - 修复了
podman kube play命令会为未指定名称的容器添加空网络别名,导致 Netavark 发出多余警告的错误。 - 修复了
podman system df命令在创建使用根文件系统的容器(podman create和podman run的--rootfs选项)而不是从镜像创建的容器时会崩溃的错误(#26224)。 - 修复了
containers.conf中的log_tag字段会覆盖podman create和podman run的--log-opt tag=value选项的错误(#26236)。 - 修复了在使用 SQLite 数据库后端时,
podman volume rm和podman 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/proccausing start and/or runtime failures due to an issue with mount ordering (#26161). - Fixed a bug where Quadlet
.podunits 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-optoption topodman create,podman run, andpodman pod createwould append options to the container’sresolv.conf, instead of replacing them (#22399). - Fixed a bug where the
podman kube playcommand 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 dfcommand would panic when one or more containers were created using a root filesystem (the--rootfsoption topodman createandpodman run) instead of from an image (#26224). - Fixed a bug where the
log_tagfield incontainers.confwould override the--log-opt tag=valueoption topodman createandpodman run(#26236). - Fixed a bug where the
podman volume rmandpodman volume inspectcommands 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
-1were 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
下载链接
- podman-5.5.1-setup.exe
- podman-installer-macos-amd64.pkg
- podman-installer-macos-arm64.pkg
- podman-installer-macos-universal.pkg
- podman-installer-windows-amd64.exe
- podman-installer-windows-arm64.exe
- podman-remote-release-darwin_amd64.zip
- podman-remote-release-darwin_arm64.zip
- podman-remote-release-windows_amd64.zip
- podman-remote-release-windows_arm64.zip
- podman-remote-static-linux_amd64.tar.gz
- podman-remote-static-linux_arm64.tar.gz
- shasums