I'm using the Jib Maven plugin to build a container image, and have the following issue: sometimes the locally available base image (e.g. foo/bar/base/parent-image:latest
) becomes older than the one available in the remote repository.
Invoking manually docker pull parent-image:latest
pulls the most current :latest
version, but I'd like this to happen automatically every time my image is built, similarly to the --pull
parameter of Docker CLI: docker build --pull my-image:latest
.
Can this (always pulling the base image before image build) be obtained with current version (3.2.1) of Jib Maven plugin?
I tried prefixing the base image with registry://
like described in "Setting the base image", and it makes no difference:
<from>
<image>registry://foo/bar/base/parent-image:latest</image>
</from>
I could try to set the base image cache directory, described in "System Properties", to a random temp directory, but I don't want such a overkill workaround.