fix: Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE by hanapedia · Pull Request #2536 · testcontainers/testcontainers-go

What does this PR do?

Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE to align with other testcontainers projects.

Why is it important?

The changes in this PR will align how to override the host of the docker daemon where the container port is exposed with other testcontainers projects and the current testcontainers-go documentation.

In other testcontainers projects, TESTCONTAINERS_HOST_OVERRIDE environment variable is used to override host of the docker daemon where the container port is exposed. testcontainers-go mentions this environment variable in the documentation but it is currently not implemented. Instead, testcontainers-go uses TC_HOST, which is the old envrionment variable used in other projects for the same purpose.

Related issues

Follow-ups

The changes in this PR will deprecate TC_HOST environment variable.