Skip to content

Add support for image pull policy #1324

Description

@dmarkhas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions