Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.
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.
Testcontainers version
0.33.0
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host arch
x86
Go version
1.23
Docker version
Docker info
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