Skip to content

fix: skip docker-php server plugins for the factory HTTP client - #79

Merged
shyim merged 2 commits into
testcontainers:mainfrom
AdzerKI:fix/docker-client-api-path
Oct 24, 2026
Merged

shyim merged 2 commits into
testcontainers:mainfrom
AdzerKI:fix/docker-client-api-path

Conversation

@AdzerKI

@AdzerKI AdzerKI commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #78.

The client from DockerClientFactory::createFromEnv() already adds the daemon address and the negotiated API path, so Docker::create() gets applyServerPlugins: false for it, as the docker-php docs describe. An injected HTTP client factory keeps the server plugins.

The new unit test runs a stub daemon on PHP's built-in server that reports API 1.41 and checks that requests go to /v1.41/info only. I also checked a container start and stop against Podman 4.9.

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for testcontainers-php ready!

Name Link
🔨 Latest commit 31c2f2a
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-php/deploys/6adbaccb01eb97aa9c2c4b11
😎 Deploy Preview https://deploy-preview-79--testcontainers-php.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

shyim
shyim previously approved these changes Oct 23, 2026
@shyim
shyim dismissed their stale review October 23, 2026 02:52

.......

Comment thread tests/Unit/ContainerClient/DockerContainerClientTest.php
@shyim
shyim merged commit 3271252 into testcontainers:main Oct 24, 2026
7 checks passed
@shyim

shyim commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks

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.

Requests get a double API version path with daemons below API 1.45 (Podman)

2 participants