podman 的配置文件位置 containers.conf

podman 的配置文件,特别重要的路径位于/usr/share/containers下面的containers.conf文件。根据官方的文档说:

Container engines read the /usr/share/containers/containers.conf and /etc/containers/containers.conf, and /etc/containers/containers.conf.d/.conf files if they exist. When running in rootless mode, they also read $HOME/.config/containers/containers.conf and $HOME/.config/containers/containers.conf.d/.conf files.

 

Windows


The containers.conf file should be placed under $HOME/.config/containers/containers.conf on Linux and Mac and %APPDATA%\containers\containers.conf on Windows.

 

总结一下

系统 文件位置
Linux

$HOME/.config/containers/containers.conf 

/usr/share/containers/containers.conf

 /etc/containers/containers.conf

/etc/containers/containers.conf.d/.conf

【RootLess 模式下】

$HOME/.config/containers/containers.conf 

$HOME/.config/containers/containers.conf.d/.conf

Mac $HOME/.config/containers/containers.conf 
Windows %APPDATA%\containers\containers.conf 

分类: 默认 标签: 发布于: 2022-01-30 16:05:46, 更新于: 2022-01-31 08:17:56