podman error

When I try to use podman/podman compose in a distrobox, I get
Error: database static dir "/var/home/max/.local/share/containers/storage/libpod" does not match our static dir "/home/max/.local/share/containers/storage/libpod": database configuration mismatch
Error: database static dir "/var/home/max/.local/share/containers/storage/libpod" does not match our static dir "/home/max/.local/share/containers/storage/libpod": database configuration mismatch
8 Replies
termdisc
termdisc2mo ago
Are you trying to use podman from within a distrobox container? Is that allowed?
termdisc
termdisc2mo ago
How to use Podman inside of a container
One of the most asked about topics to folks working on upstream container technologies is running Podman within a container. Most of this has histo...
The Dark Wizard
The Dark WizardOP2mo ago
I thought that was the recommended method. Should I be using it from host instead?
asen23
asen232mo ago
thats the easiest way and probably what most people do lol
The Dark Wizard
The Dark WizardOP2mo ago
Got it, will just uncomplicate my life and move to host lol
asen23
asen232mo ago
btw distrobox also run podman underneath so you are kinda doing it already
The Dark Wizard
The Dark WizardOP2mo ago
hmm
DevilFish303
DevilFish3032mo ago
you will need to run podman service on the host over a unix port and then expose that port when you create your distrobox container, podman inside podman is a bit of a pain, especially on Redhat Distros where you may have things like SELinux that blocks some of this questionable features out of the box. You should only do it if you have a very specific use case.
Want results from more Discord servers?
Add your server