Open Meister1593 opened 1 year ago
Did you run podman system reset
after you changed the paths? Podman will cache the storage paths in its db.
Did you run
podman system reset
after you changed the paths? Podman will cache the storage paths in its db.
i tried doing so, but it still points to the same storages
WARNING! This will remove:
- all containers
- all pods
- all images
- all networks
- all build cache
- all machines
- all volumes
Are you sure you want to continue? [y/N] y
A "/home/plyshka/Documents/Code/Containers/alvr-distrobox/tmp-test/.config/containers/storage.conf" config file exists.
Remove this file if you did not modify the configuration.
why does it want me to remove storage.conf that i've created specifically?
Found more info: changing graphroot and runroot on default user installation (that is, $HOME/.config/containers/storage.conf
) is okay and works, but if i change that file to CONTAINERS_STORAGE_CONF=$HOME/.config/containers/storagee.conf
(just copied file), it will show it in podman info
but won't override graphRoot, runRoot
i think i might have found answer for this https://github.com/containers/podman/issues/10762#issuecomment-890492522
So when i set rootless_storage_path it changed graphRoot accordingly... didn't change runRoot though (is that an issue? would containers clash with eachother that way if they are the same name in different configurations?) This wasn't mentioned anywhere in docs and storage_path sounded almost as if it was related to images or volumes, can docs be corrected so they mention this flag specifically for rootless usecase?
A friendly reminder that this issue had no activity for 30 days.
@Meister1593 Interested in opening a PR to fix Documentation?
Looks like I have this issue too. I had a user that is 1000, added one that I use all the time, which is 1001. However, podman ignores the fact that I have the only config (I've checked all three possible locations) at /etc/containers/ and also ignores its contents. No matter what podman system reset
or something alike I try, it always thinks runRoot is in /run/user/1000/ (should be 1001).
It baffles me so much I just create a symlink on every startup with a script, but surely this isn't the solution?
Edit: after a few resets, migrations and reboots, podman now correctly understands the location.
I followed this procedure and was able to replace the value of runroot
without performing a podman system reset
. The advantage should be that you can keep the containers (and volumes).
relocating-podman-data-storage
The key step for me is this one:
rm -f ${OLD_GRAPH_PATH}/libpod/bolt_state.db
It would be useful to understand if whether there are any side effects in doing it this way.
Issue Description
Hello. I'm currently developing completely portable rootless distrobox/podman installation for using ALVR under Linux and have discovered some issues with setting configuration for storage.conf. So to make it completely portable (so that it never interferes with other configurations) i need to override pretty much every single configuration that is related to containers, volumes, etc etc, and that includes graphRoot and runRoot. When i tried doing so, it still pointed at home folder and same xdg runtime directory.
Steps to reproduce the issue
Steps to reproduce the issue
podman info
Describe the results you received
Graphroot and runroot points to same location
Describe the results you expected
Graphroot and runroot should point to location i've specified in storage.conf
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Running on Fedora Silverblue 38, installing podman using this script
Additional information
storage.conf