Skip to content
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

Updating an image does not update the container. #1804

Open
Magicrafter13 opened this issue Jul 26, 2024 · 2 comments
Open

Updating an image does not update the container. #1804

Magicrafter13 opened this issue Jul 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Magicrafter13
Copy link

Cockpit version: 320
Cockpit-podman version: 90
Podman version: 5.1.1
OS: Fedora Server 40

When I update a tagged image, the container somehow continues using its old version of the image. And if I delete that "intermediate" image the container is deleted as well.

Steps to reproduce

  1. Create a container with [some_image]:latest
  2. Wait for a new release of the image with the same 'latest' tag
  3. Stop the container (from web UI or CLI)
  4. Run podman pull [some_image]:latest to update
  5. Start the container again (once again, web UI or CLI)
  6. Observe that the container is not using the latest image after all (you may want to use a container which logs its version number or something)

Here we see the intermediate image which tells us it is being used by Pi-Hole.
image
Here we see that Pi-Hole claims to be using docker.io/pihole/pihole:latest.
image
And finally we see that the actual image of docker.io/pihole/pihole:latest is not in fact being used by any containers.
image

@Magicrafter13 Magicrafter13 added the bug Something isn't working label Jul 26, 2024
@jelly
Copy link
Member

jelly commented Jul 26, 2024

Pulling an image does not automatically update the running container(s), this is by design you don't want pulling an image to influence running containers.

You can however setup podman to automatically update a running container but that requires using a systemd unit or quadlet https://docs.podman.io/en/latest/markdown/podman-auto-update.1.html

@Magicrafter13
Copy link
Author

Magicrafter13 commented Jul 26, 2024

Perhaps I should have this changed to a feature request then? Until then I've begun moving my containers over to systemd podman. Pi-Hole is giving me trouble but I got my more important ones up and running and everything seems to work fine. Took a lot of fiddling though...

I'll check back every so often to see if the updates work - I think I've configured the unit files correctly for the automatic image pulls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants