Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get_host for unix and npipe docker hosts #621

Merged
merged 1 commit into from
May 1, 2024
Merged

fix: get_host for unix and npipe docker hosts #621

merged 1 commit into from
May 1, 2024

Conversation

DDtKey
Copy link
Collaborator

@DDtKey DDtKey commented May 1, 2024

The implementation should be aligned with this impl: https://github.com/testcontainers/testcontainers-java/blob/994b385761dde7d832ab7b6c10bc62747fe4b340/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java#L451-L467

I.e. we should return Gateway only if client running in a container.
Otherwise, it's localhost for unix and pipe

The implementation should be aligned with this impl: https://github.com/testcontainers/testcontainers-java/blob/994b385761dde7d832ab7b6c10bc62747fe4b340/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java#L451-L467

 I.e. we should return `Gateway` only if client running in a container.
Otherwise, it's `localhost` for `unix` and `pipe`
@DDtKey DDtKey merged commit b2c927e into main May 1, 2024
9 checks passed
@DDtKey DDtKey deleted the fix-host branch May 1, 2024 20:24
@github-actions github-actions bot mentioned this pull request May 1, 2024
DDtKey pushed a commit that referenced this pull request May 1, 2024
## 🤖 New release
* `testcontainers`: 0.16.6 -> 0.16.7 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.16.7] - 2024-05-01

### Details
#### Bug Fixes
- `get_host` for `unix` and `npipe` docker hosts
([#621](#621))

#### Features
- Extend `WaitFor` for `ExecCommand`
([#622](#622))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant