Sometimes we might want to pin to a minor version tag of a Docker image, for example 1.2. If the job has already run when version 1.2.1 of the image was also tagged as 1.2, then later on version 1.2.2 is released and is tagged as 1.2, then when we run the job again it will not pull the newer image as it already has an image with the 1.2 tag. It would be useful to be able to specify an image pull policy, which would give us the option of always trying to pull the image.
Sometimes we might want to pin to a minor version tag of a Docker image, for example
1.2
. If the job has already run when version1.2.1
of the image was also tagged as1.2
, then later on version1.2.2
is released and is tagged as1.2
, then when we run the job again it will not pull the newer image as it already has an image with the1.2
tag. It would be useful to be able to specify an image pull policy, which would give us the option of always trying to pull the image.