-
Notifications
You must be signed in to change notification settings - Fork 485
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 Autoupdate does not work with podman-compose systemd generated pods/containers #534
Comments
please test, I've added the label |
Very nice change! Previously I've been doing Unfortunately, with this change, auto-updates doesn't work neither with the above solution nor out of the box because of #466, which is required for auto-updates to work. |
should fix containers#466 code from containers#534 (comment)
as of podman v4.5.0 auto-update is broken again. The issue seems to stem from this commit in podman itself: which results in auto-update expecting an infra container. Currently testing wether manually generating an infra container (via e.g. --pod-args='--infra=true') can somewhat workaround this. (Seems to only work if i use podman-compose.py for just generating the pod/containers, but not the systemd service files and then afterwards use regular podman generate systemd to create the systemd service files) edit: from the updated man page of podman-auto-update from here: vrothberg/libpod@0ef5def
|
I can confirm auto updates broke for me too. |
As
Remarks: Default share namespaces are |
Please reopen. I am using podman 4.6.1 and all I get is the following:
This caught me totally by surprise when I wondered why my nextcloud instance does not get security updates any more... |
Still an issue with podman 4.9.3 and podman-compose 1.0.6 ❯ podman auto-update
Error: 7 errors occurred:
* looking up pod's systemd unit: pod has no infra container: no such container
* looking up pod's systemd unit: pod has no infra container: no such container
* looking up pod's systemd unit: pod has no infra container: no such container
* looking up pod's systemd unit: pod has no infra container: no such container
* looking up pod's systemd unit: pod has no infra container: no such container
* looking up pod's systemd unit: pod has no infra container: no such container
* looking up pod's systemd unit: pod has no infra container: no such container Edit: |
Still an issue with podman 5.0.3 |
Did you solve it? I have the same problem |
Using the devel branch (acquired 2022-07-28) pods/containers that have the appropriate
"io.containers.autoupdate=registry"
labels fail to update with an error sayingauto-updating container "LONG_HASH_HERE": no PODMAN_SYSTEMD_UNIT
label foundTo Reproduce
Steps to reproduce the behavior:
io.containers.autoupdate=registry
label in the compose file.sudo podman-compose systemd --action create-unit
podman-compose systemd -a register -f myfile.yml
systemctl --user enable --now 'podman-compose@myfile'
podman auto-update
Expected behavior
Updated imaged are pulled, and the pods relaunched with appropriate new images
Actual behavior
An error happens.
Output
Additional context
I was able to fix this by adding an additional
PODMAN_SYSTEMD_UNIT
label to the compose file (in the compose file below), but shoulden’t this be applied via the env file or somewhere else?The text was updated successfully, but these errors were encountered: