Creating a new image from a running container

You can save the state of a running container as a new image. This is somewhat similar to "creating a snapshot" when working with virtual machines. If you use Docker, just replace podman with docker in the below commands. $ podman container commit <container name or id> <new-image:tag> $ podman container commit ansible ansible:2022-04-11

April 11, 2022

Auto updating container images

We can set the desired image pull policy during container startup. Podman/docker $ podman/docker container run --pull=always $ podman/docker container run --pull=newer Kubernetes spec: containers: - name: <name> imagePullPolicy: Always

December 10, 2021