-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman opens storage.conf in locations other than XDG_CONFIG_HOME #15680
Comments
Can you test with the latest podman version. |
It may work for storage.conf but registries.conf and others won't, see containers/image#1647. Changing the behavior is certainly doable but we need to be extremely careful to not break users. |
…aults HPC Customers noticed that storage was attempting to read files in /usr and /etc, even though they set XDG_CONFIG_HOME, they expect to only read config files in this directory. Fixes: containers/podman#15680 (Actually partial fixes), need to look at other config files. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
HPC Customers noticed that storage was attempting to read files in /usr and /etc, even though they set XDG_CONFIG_HOME, they expect to only read config files in this directory. Fixes: containers/podman#15680 (Actually partial fixes), need to look at other config files. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan tackles storage.conf in containers/storage#1357 |
Reopening as containers/storage#1357 addressed storage.conf only. |
A friendly reminder that this issue had no activity for 30 days. |
Ah wonderful, thank you! |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Even after a user has set
XDG_CONFIG_HOME
, it looks like Podman still opens thestorage.conf
file located in more "standard" locations like/etc/containers/storage.conf
. This is an issue for us at NERSC as we try to run Podman at very large scale, and we want make sure Podman only opens the configuration file we have copied into local memory and have specified withXDG_CONFIG_HOME
.Steps to reproduce the issue:
Part of the strace output file:
It looks like Podman is still opening
/etc/containers/storage.conf
, even though we have setexport XDG_CONFIG_HOME=$HOME/.config
.Our hope is that when a user sets
XDG_CONFIG_HOME
, Podman will first attempt to open config files in this location. Based on the comments at the top of storage.conf, it does seem like it should start withXDG_CONFIG_HOME
. If this fails, Podman could then attempt to open other configuration files in order of precedence.Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No we have not upgraded yet. Please let us know if you'd like us to upgrade.
Thank you all very much,
Laurie @scanon @danfulton
The text was updated successfully, but these errors were encountered: