Skip to content

[Bug]: TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX trailing slash not handled properly #2746

@driverpt

Description

@driverpt

Testcontainers version

0.33.0

Using the latest Testcontainers version?

Yes

Host OS

MacOS

Host arch

x86

Go version

1.23

Docker version

Docker version 27.1.1, build 6312585

Docker info

N/A

What happened?

If we add a trailing slash to TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX, which we do by convention, Test Containers doesn't handle this very well. All containers end up having something like i.e.:<custom_url>//<image> which causes it to fail.

Relevant log output

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue with the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions