There does not seem to be a way to retrieve the latest image version for a GenericContainer via the library. This is not a problem for the provided application containers, but when using a custom image we are forced to manually run docker pull outside of the test project before running the tests to ensure we are using the latest image.
It would be nice if the library could be extended with something like imagePullPolicy that would allow users to always pull the latest image version of the GenericContainer by leveraging the pullImageCmd API in docker-java.
This would also allow to address this long standing issue in Docker:
moby/moby#13331
And would allow to easily support the behavior that is proposed here:
docker/cli#1498
There does not seem to be a way to retrieve the latest image version for a GenericContainer via the library. This is not a problem for the provided application containers, but when using a custom image we are forced to manually run
docker pulloutside of the test project before running the tests to ensure we are using the latest image.It would be nice if the library could be extended with something like
imagePullPolicythat would allow users to always pull the latest image version of the GenericContainer by leveraging thepullImageCmdAPI in docker-java.This would also allow to address this long standing issue in Docker:
moby/moby#13331
And would allow to easily support the behavior that is proposed here:
docker/cli#1498