Binary compat issue with testcontainers 4.5.0 #697

Closed
opened 2025-12-29 08:32:40 +01:00 by adam · 0 comments
Owner

Originally created by @scrocquesel on GitHub (Jun 9, 2025).

Describe the bug

When a project use Testcontainers 4.5.0, WireMock.Net.Testcontainers fails with :

System.MissingMethodException : Method not found: 'Docker.DotNet.DockerClient Docker.DotNet.DockerClientConfiguration.CreateClient(System.Version)'

Expected behavior:

No error at runtime

Test to reproduce

  • Reference Testcontainers 4.5.0 directly

This is because Testcontainers has bumped is dependency on Docker.DotNet to 3.128.1 and this version introduce a new argument to the DockerClientConfiguration.CreateClient method without keeping the old overload. This method is used in WireMock.Net.Testcontainers.Utils.TestcontainersUtils

Originally created by @scrocquesel on GitHub (Jun 9, 2025). ### Describe the bug When a project use Testcontainers 4.5.0, WireMock.Net.Testcontainers fails with : ``` System.MissingMethodException : Method not found: 'Docker.DotNet.DockerClient Docker.DotNet.DockerClientConfiguration.CreateClient(System.Version)' ``` ### Expected behavior: No error at runtime ### Test to reproduce - Reference Testcontainers 4.5.0 directly ### Other related info This is because Testcontainers has bumped is dependency on Docker.DotNet to 3.128.1 and this version introduce a new argument to the `DockerClientConfiguration.CreateClient` method without keeping the old overload. This method is used in `WireMock.Net.Testcontainers.Utils.TestcontainersUtils`
adam added the bug label 2025-12-29 08:32:40 +01:00
adam closed this issue 2025-12-29 08:32:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#697