-
Notifications
You must be signed in to change notification settings - Fork 234
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 does not read /usr/share/containers/storage.conf as documented #1015
Comments
Me too! #Fedora34 Desktop podman issue - possible cause |
Man page says we support storage.conf in this directory, so if system does not have /etc/containers/storage.conf we should use it. Fixes: containers#1015 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Man page says we support storage.conf in this directory, so if system does not have /etc/containers/storage.conf we should use it. Fixes: containers#1015 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Man page says we support storage.conf in this directory, so if system does not have /etc/containers/storage.conf we should use it. Fixes: containers#1015 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Man page says we support storage.conf in this directory, so if system does not have /etc/containers/storage.conf we should use it. Fixes: containers#1015 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
It breaks the development branch again: podman info attempts to ceate something in the run/containers/storage that is impossible for the rootless user. Resolution of the storage root for the rootless users via $HOME is impossible too because HOME env variable inside systemd unit environment is not promissed unless included into unit or environment file. |
@PavelSosin-320 This Bug was about reading /usr/share/containers/storage.conf, which upstream Podman should now do. (Or will do as soon as containers/storage is updated. |
I referenced this issue because I see that both may have the same rooy cause: storage configuration plays with interactive session's environment variables too freely. It is enaugh to have some part of session environment like HOME, CONTAINER_*, etc to disappear from the environment to get storage configuration to be skipped or become non-applicable for a rootless user. systemd-run podman info with --set-env HOME and without it produce different output and in the last case no storage configuration is detected. For example, on desktop systemd-based Linux distro location of the configuration files follows certain rules: HOME, XDG_CONFIG_HOME are set by certain environment generator and known inside interactive user session. If somethings runs as a service without systemd generator and per-user environment file nothing guaranties that all parts of environment used by application exist and all configuration files can be found. Any user can create symbolic link to the configuration file located in /usr/lshare... to share configuration but but this shared file can't recurcievly use interactive session environment. rootless_user_storage... defined in the /usr/share/containers and defined via HOME can be interpreted only if HOME itself is known and correct. Non-interactive user may not have a HOME if it was not created using homectl. $> homectl output is "No home area!" |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
As discussed on IRC, basically podman does not read /usr/share/containers/storage.conf whereas
https://github.com/containers/storage/blob/main/docs/containers-storage.conf.5.md#files says it should
Steps to reproduce the issue:
podman containers ls
- confirm podman workspodman containers ls
- podman errors with "Error: /var/lib/containers/storage contains several valid graphdrivers: btrfs, overlay; Please cleanup or explicitly choose storage driver (-s )"Describe the results you expected:
podman should read the storage.conf in /usr/share/containers
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: