testcontainers / testcontainers/testcontainers-python
Bug: tc.host support issue - failing to connect to dockerd if tc.host is present
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 386
- Avg merge
- 4h 40m
- Merged PRs (30d)
- 1
Description
Describe the bug
when we added #388 it reads stale data (or even in an older format?) and fails to connect to docker, preferring to connect to a tc desktop that may not be running anymore.
this library should validate the format before consuming the value, and potentially also check for a healthy server running on that port.
To Reproduce
Add/comment/uncomment the below line in ~/.testcontainers.properties
tc.host=tcp\://127.0.0.1\:42319
Runtime environment
n/a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how ~/.testcontainers.properties and the tc.host value introduced by #388 are read before the library connects to dockerd. Reproduce the failure with tc.host=tcp\://127.0.0.1\:42319, then inspect the existing connection checks and tests, if present. Done means stale or incorrectly formatted values no longer cause the library to prefer an unavailable Docker endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100