Skip to content

[Bug]: Fully qualified image names are considered "incompatible" #9958

Description

@jakub-bochenski

Module

PostgreSQL

Testcontainers version

1.17.6

Using the latest Testcontainers version?

Yes

Host OS

n/a

Host Arch

n/a

Docker version

n/a

What happened?

Trying to use fully qualified names makes Testcontainers think it's an incompatible image

Relevant log output

IllegalStateException: Failed to verify that image 'docker.io/postgres:16-alpine' is a compatible substitute for 'postgres'.



IllegalStateException: Failed to verify that image 'docker.io/library/postgres:16-alpine' is a compatible substitute for 'postgres'.



IllegalStateException: Failed to verify that image 'library/postgres:16-alpine' is a compatible substitute for 'postgres'.

Additional Information

Testcontainers should be using docker.io/library/postgres as the actual expected image name.

Shorthand image names should be handled by adding the default docker.io/library/ prefix

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions