Auto-update doesn't work using Quadlet #20675
Replies: 8 comments 6 replies
-
Yes, as you've stated, this is related to the container being part of a Pod. According to this: https://github.com/containers/podman/blob/main/pkg/autoupdate/autoupdate.go#L453 once the container is part of a Pod, podman looks for the label at the Pod level and not at the container level. So, this is a Podman general behavior and not a Quadlet one. @rhatdan @vrothberg any thoughts? |
Beta Was this translation helpful? Give feedback.
-
I think it is reasonable for users to expect the attribute to work if set on a container within a Pod, but want @vrothberg to chime in. |
Beta Was this translation helpful? Give feedback.
-
Pods in Quadlet were meant to be used via I personally prefer to not support this scenario at all and improve documentation of Quadlet/Podman. This specific issue seems fairly easy to fix by changing the semantics of https://github.com/containers/podman/blob/main/pkg/autoupdate/autoupdate.go#L453 to return the container's unit (again) if the infra container is not part of another unit. But again, there is a reason why Quadlet does not support a |
Beta Was this translation helpful? Give feedback.
-
Is it rational to use K8s for my little tasks? I've never used it, so I don't know. |
Beta Was this translation helpful? Give feedback.
-
If you run your pod/container via the podman command and then do a |
Beta Was this translation helpful? Give feedback.
-
Since we already described a workaround and our desire not to support, moved to a discussion. |
Beta Was this translation helpful? Give feedback.
-
I solved the problem of: "I want my containers inside my pod to update their image when calling
Now it triggers an update like this
Maybe this has been stated already in the thread but it was not entirely clear to me, so I wanted to state it here. Thanks Ygal Blum. What you said really helped me here: |
Beta Was this translation helpful? Give feedback.
-
As I am just trying to get auto-update running on a 4.9.3 version, I have two short questions: Currently I have the label and the env set on container level, still get the error "no PODMAN_SYSTEMD_UNIT label found".
Is there actually a working setup for this in 4.9.3? How does it have to look? |
Beta Was this translation helpful? Give feedback.
-
Issue Description
I can't use the auto-update feature for this container:
But everything is OK with this:
I also have the same problem with other containers but I think it's not necessary to show more.
Steps to reproduce the issue
Steps to reproduce the issue
podman auto-update
.Describe the results you received
I received non-working auto-update.
Describe the results you expected
I would like to have the working auto-update feature.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
Maybe the problem is the using of pods? I don't know if it's necessary to create them another way.
Beta Was this translation helpful? Give feedback.
All reactions