You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, due to storage space limitations, I want to move all user data from /var/containers/$USER to /data/containers/$USER instead, possibly without losing containers or images.
Simply moving all data and then changing the config paths unsurprisingly doesn't seem to work, because paths seem to be hard-coded in /var/lib/containers/storage/db.sql and / or /var/containers/$USER/db.sql.
A similar issue was discussed in #18780, however, the approach mentioned (copy volumes, run podman system reset, change config paths) doesn't take containers into account. Simply copying all data instead yields the following error, for obvious reasons:
Error: database static dir "" does not match our static dir "/data/containers/ferdinand/libpod": database configuration mismatch
So my question is: is there a way to migrate the storage location without losing data? Would be happy to get some help on this!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, my
/etc/containers/storage.conf
looks like this:However, due to storage space limitations, I want to move all user data from
/var/containers/$USER
to/data/containers/$USER
instead, possibly without losing containers or images.Simply moving all data and then changing the config paths unsurprisingly doesn't seem to work, because paths seem to be hard-coded in
/var/lib/containers/storage/db.sql
and / or/var/containers/$USER/db.sql
.A similar issue was discussed in #18780, however, the approach mentioned (copy volumes, run
podman system reset
, change config paths) doesn't take containers into account. Simply copying all data instead yields the following error, for obvious reasons:So my question is: is there a way to migrate the storage location without losing data? Would be happy to get some help on this!
Using Podman 4.9.3 on Ubuntu 24.04.
Beta Was this translation helpful? Give feedback.
All reactions