Testcontainers
A lightweight library to run tests with throwaway instances of Docker containers.
Install
dotnet add package Testcontainers --version 2.1.0-beta.2698157448
Install-Package Testcontainers -Version 2.1.0-beta.2698157448
<PackageReference Include="Testcontainers" Version="2.1.0-beta.2698157448" />
Frameworks
Dependencies
Adoption guide
Teams that need production-like dependency behavior in CI, including version pinning and reproducible startup contracts.
This version is marked prerelease. Validate its API and upgrade path before production use.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.