Podman这烦人的警告

Podman更新到5.7后出现

WARN[0000] The deprecated BoltDB database driver is in use. This driver will be removed in the up coming Podman 6.0 release in mid 2026. It is advised that you migrate to SQLite to avoid issues w hen this occurs. Set SUPPRESS_BOLTDB_WARNING environment variable to remove this message.

这个警告,虽然知道能设置SUPPRESS_BOLTDB_WARNING环境变量来关闭这个恼人提示,不过我没有设置过BoltDB这玩意儿而且也没有过这个软件包

瞄了瞄/usr/share/containers/containers.conf里的内容提到

# The database backend of Podman.  Supported values are "" (default), "boltdb"               
# and "sqlite". An empty value means it will check whenever a boltdb already                 
# exists and use it when it does, otherwise it will use sqlite as default                    
# (e.g. new installs). This allows for backwards compatibility with older versions.          
# Please run `podman-system-reset` prior to changing the database                            
 # backend of an existing deployment, to make sure Podman can operate correctly.              
#                                                                                            
#database_backend = "" 

看起来podman以前默认使用boltdb,但现在默认使用sqlite,未来会舍弃boltdb。如果现在要使用sqlite的话还得进行podman system reset完全移除掉现有内容。又是得手动迁移,真是神烦。

还好拿来当nextcloud服务器的老电脑是用quadlet文件管理容器的, podman system reset后重启服务就能自动完成镜像拉取和容器启动,不过distrobox的那些容器忘了commit再导出镜像,又得从零开始了,唉。

:sad_but_relieved_face:我半年前才换到podman

嘛半年前的话应该Podman已经默认使用的sqlite了可能,毕竟我的Steam Deck上的podman 5.3.2试了试podman info | grep database已经是用sqlite了。我电脑是22年就开始用的podman,只能手动把Podman给重置才能用sqlite了。

原来如此, 已经是sqlite了 :face_holding_back_tears:

podman info | grep database

databaseBackend: sqlite