Skip to content

Commit 2c34456

Browse files
committed
Add --pull=newer when running the container
From https://docs.podman.io/en/latest/markdown/podman-run.1.html#pull-policy Pull image policy. The default is missing. always: Always pull the image and throw an error if the pull fails. missing: Pull the image only if it could not be found in the local containers storage. Throw an error if no image could be found and the pull fails. never: Never pull the image but use the one from the local containers storage. Throw an error if no image could be found. newer: Pull if the image on the registry is newer than the one in the local containers storage. An image is considered to be newer when the digests are different. Comparing the time stamps is prone to errors. Pull errors are suppressed if a local image was found. Switching to pull=newer will allow us to keep this image uptodate for users without erroring out if podman cannot check or pull a new image (i.e. we'd keep running the local one)
1 parent b23bd64 commit 2c34456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/pattern-util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
# Do not quote the ${KUBECONF_ENV} below, otherwise we will pass '' to podman
2929
# which will be confused
30-
podman run -it --rm \
30+
podman run -it --rm --pull=newer \
3131
--security-opt label=disable \
3232
-e EXTRA_HELM_OPTS \
3333
-e KUBECONFIG \

0 commit comments

Comments
 (0)