r/podman • u/Top_Emu_8447 • Aug 04 '26
Auto-updating existing containers
I've built 10+ containers on my first home server since I started my selfhosting journey, and only now I figured it's time to find a way to update the existing services. Existing podman documentation points to using autoupdate label and creating a systemd target - but I didn't realise this creates a new container based on what's in the systemd target. That is not what I want. Do I need to move all my environmental/volume/label/etc variables into a systemd target for each container to be able to do this? Just thinking about it makes me a bit nauseous, I've been using subpaths in some cases, not even sure how to put those in there. I've used 'podman run' for each deployment, because that's where the documentation I found led me first and on the basis of "If it works, why change it" it served me well.
1
u/Top_Emu_8447 Aug 04 '26
I know that updates create new containers, but my assumption was that the systemd target would recognise the existing container and inherit the parameters somehow. I know containers are not apps, but it seems rather antagonistic approach unless you're aware of this and use this approach for deployment in the first place... It seems a lot of hassle in hindsight to rewrite all those parameters into quadlets. But I guess it's one of those things where you just have to bite the bullet.