Skip to content

Support a global never-pull image policy #1456

Description

@longlho

A pull policy returning false currently disables forced refreshes but still pulls missing images. CI systems that preload images cannot enforce local-only execution, including for helpers such as Ryuk.

Could we add TESTCONTAINERS_PULL_POLICY=never to use local images and fail before registry authentication or pulls if an image is unavailable? It should cover helper containers and leave defaults unchanged. This is an image-pull restriction, not general network isolation or an offline Docker build mode.

Related: #1122 addressed unnecessary registry access for existing images; this would also prohibit pulling missing images.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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