Bug: Docker environment variables are ignored in 4.2 and 4.3 when host is set
envgap__testcontainers__testcontainers-python-521
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
4872ea5759347e10150c0d80e4e7bbce3d59c410- Manifest
pyproject.toml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
testcontainers/testcontainers-python #521 · read the original issue
**Describe the bug** Expected to be able to set the following environment variables: ```sh DOCKER_HOST="https://docker:2376" DOCKER_TLS_VERIFY=1 DOCKER_TLS_CERTDIR="/certs" DOCKER_CERT_PATH="/certs/client" ``` After setting these, only `DOCKER_HOST` is read and applied, other TLS configuration is ignored. **To Reproduce** Try to set up a TLS based docker setup locally with the provided variables in the description. **Runtime environment** This was tested in gitlab kubernetes dind runner environment, but looking at the code this should not matter. OS: Ubuntu 22.04 LTS Python: 3.10.12 Testcontainers: 4.2 and 4.3 tested and failed, 4.1.2 works
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]