fix: Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE #2536
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Rename
TC_HOST
environment variable toTESTCONTAINERS_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
usesTC_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.