testcontainers / testcontainers-go

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.

Home Page:https://golang.testcontainers.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: TESTCONTAINERS_HOST_OVERRIDE is not working

emfomy opened this issue · comments

Testcontainers version

0.31.0

Using the latest Testcontainers version?

Yes

Host OS

N/A

Host arch

N/A

Go version

N/A

Docker version

N/A

Docker info

N/A

What happened?

According to https://golang.testcontainers.org/system_requirements/rancher/ and https://golang.testcontainers.org/features/configuration/, we should be able to use TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE and TESTCONTAINERS_HOST_OVERRIDE.

However, these environment variables are not parsed in https://github.com/testcontainers/testcontainers-go/blob/v0.31.0/internal/config/config.go#L69

Relevant log output

No response

Additional information

No response

Hi @emfomy thanks for opening this issue. Just to let you know, there is an ongoing PR addressing this: #2609