Skip to content

Releases: testcontainers/testcontainers-dotnet

4.10.0

01 Jan 17:06
d66a9f1

Choose a tag to compare

What's Changed

Happy New Year, everyone! 🎉

Please note that going forward, we expect developers to explicitly pin the image version (https://github.com/testcontainers/testcontainers-dotnet/discussions/1470). We consider this a best practice and it aligns with other language implementations.

Also, due to the recent Docker Engine v29 release, TC for .NET pins the Docker Engine API version to 1.44 (see the previous release notes). You can override this default and set it to the version you're using, ideally 1.52, which corresponds to v29, if you're already running it.

⚠️ Breaking Changes

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

4.9.0

23 Nov 15:51
3f9de42

Choose a tag to compare

What's Changed

This release adds a new configuration (DOCKER_API_VERSION) that lets you pin and downgrade the Docker Engine API version. This was needed because Docker Engine v29 introduced breaking changes that affect Docker.DotNet and Testcontainers for .NET. This release pins the API version to 1.44. So far, no issues or negative side effects have been observed.

I am also working on updating Docker.DotNet to make it fully compatible with Docker Engine v29. There is already a work-in-progress PR.

Thanks to all the contributors who helped with this release 👍.

⚠️ Breaking Changes

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

4.8.1

23 Oct 04:55
2e32476

Choose a tag to compare

What's Changed

🐛 Bug Fixes

4.8.0

19 Oct 14:36
1cfac50

Choose a tag to compare

What's Changed

Thank you to all the contributors 🙌.

In version 4.7.0, we noticed that the reuse hash could change depending on the order of dictionary values. This has been fixed to ensure that dictionary values are processed in a consistent order when generating the reuse hash. As a result, the reuse hash will likely change again with 4.8.0.

Wait strategies now default to the Running mode. This mode expects the container to remain running throughout startup. If the container exits unexpectedly, Testcontainers will throw a ContainerNotRunningException that includes the exit code and container logs.

The container startup callback now includes an additional overload that provides the actual container configuration. If you implement IContainerBuilder<TBuilderEntity, TContainerEntity>, you need to add the container configuration (e.g., IContainerConfiguration) as a third generic type constraint to IContainerBuilder.

IContainerBuilder.WithResourceMapping and IContainer.CopyAsync now include two new optional arguments: uid and gid. If you do not need to specify those, use named arguments for the existing parameters: fileMode or ct.

⚠️ Breaking Changes

🚀 Features

🐛 Bug Fixes

📖 Documentation

  • docs: Remove obsolete UntilOperationIsSucceeded wait strategy example (#1551) @ascott18
  • docs: Fix link to Ryuk in IContainerBuilder.WithAutoRemove code comment (#1546) @hojmark

🧹 Housekeeping

4.7.0

28 Aug 09:52
b0b0cbc

Choose a tag to compare

What's Changed

This release doesn't introduce breaking changes to the public API, but it isn't binary compatible due to necessary internal changes. Make sure to update all related packages (Testcontainers modules) to the same version. See more details here. Thanks to all contributors 👏.

⚠️ Breaking Changes

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

4.6.0

13 Jun 06:33
5209f13

Choose a tag to compare

What's Changed

This is a patch release (but the minor version was already set). It fixes a bug in our Docker.DotNet fork where a wrong HTTP Connection header break Podman and possibly other environments. Shipped a quick fix. Thanks again to @ahaeber and @victor-lambret for the help.

🐛 Bug Fixes

🧹 Housekeeping

4.5.0

05 Jun 15:59
b1244cc

Choose a tag to compare

What's Changed

Big thanks to everyone who contributed to this release 🤜🤛.

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

4.4.0

14 Apr 17:08
2162c44

Choose a tag to compare

What's Changed

Time for a new release! Big thanks to everyone who helped out with this one. It's got some awesome new features and fixes 😎. Seriously, I can't thank you enough. This wouldn't be possible without your ongoing support 🙏.

🚀 Features

🐛 Bug Fixes

  • fix(Pulsar): Set memory limits (#1420) @HofmeisterAn
  • fix: Add Docker Hub image name prefix to image builder API WithName(IImage) (#1413) @HofmeisterAn
  • fix: Reflect Unix file mode when building tarball from .NET 7 onwards (#1397) @kfarnung
  • fix: Retrieve logs since CreatedTime for UntilMessageIsLogged wait strategy (#1384) @0xced

📖 Documentation

🧹 Housekeeping

4.3.0

24 Feb 15:56
b53e4f2

Choose a tag to compare

What's Changed

Thank you to all the contributors 🙌.

🚀 Features

🐛 Bug Fixes

🧹 Housekeeping

4.2.0

10 Feb 19:59
c56c495

Choose a tag to compare

What's Changed

Thanks for all the contributions. Great first release of the year ❤️.

🚀 Features

🐛 Bug Fixes

  • fix(Redpanda): Add missing command-line arguments to the startup script (smp, memory) (#1364) @RobotechUSA
  • chore: Remove binding of ports to IPv4 only (#1363) @daviian
  • feat: Add network support to the Kafka container (#1316) @SebastienDegodez
  • fix: Load PKCS#12 correctly for mTLS on Windows in .NET 9 (#1320) @jvmdc

🧹 Housekeeping