Testcontainers 4.11.0
Prefix Reserveddotnet add package Testcontainers --version 4.11.0
NuGet\Install-Package Testcontainers -Version 4.11.0
<PackageReference Include="Testcontainers" Version="4.11.0" />
<PackageVersion Include="Testcontainers" Version="4.11.0" />
<PackageReference Include="Testcontainers" />
paket add Testcontainers --version 4.11.0
#r "nuget: Testcontainers, 4.11.0"
#:package Testcontainers@4.11.0
#addin nuget:?package=Testcontainers&version=4.11.0
#tool nuget:?package=Testcontainers&version=4.11.0
Testcontainers
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. The library is built on top of the .NET Docker Remote API and provides a lightweight implementation to support your test environment in all circumstances.

Read the documentation here
License
See LICENSE.
Copyright
Copyright (c) 2019 - 2026 Andre Hofmeister and other authors.
See contributors for all contributors.
Join our Slack Workspace | Testcontainers OSS | Testcontainers Cloud
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Docker.DotNet.Enhanced (>= 3.131.1)
- Docker.DotNet.Enhanced.X509 (>= 3.131.1)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- Microsoft.Bcl.HashCode (>= 1.1.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- SharpZipLib (>= 1.4.2)
- SSH.NET (>= 2025.1.0)
-
.NETStandard 2.1
- BouncyCastle.Cryptography (>= 2.6.2)
- Docker.DotNet.Enhanced (>= 3.131.1)
- Docker.DotNet.Enhanced.X509 (>= 3.131.1)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- Microsoft.Bcl.HashCode (>= 1.1.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- SharpZipLib (>= 1.4.2)
- SSH.NET (>= 2025.1.0)
-
net10.0
- Docker.DotNet.Enhanced (>= 3.131.1)
- Docker.DotNet.Enhanced.X509 (>= 3.131.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- SharpZipLib (>= 1.4.2)
- SSH.NET (>= 2025.1.0)
-
net8.0
- Docker.DotNet.Enhanced (>= 3.131.1)
- Docker.DotNet.Enhanced.X509 (>= 3.131.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- SharpZipLib (>= 1.4.2)
- SSH.NET (>= 2025.1.0)
-
net9.0
- Docker.DotNet.Enhanced (>= 3.131.1)
- Docker.DotNet.Enhanced.X509 (>= 3.131.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- SharpZipLib (>= 1.4.2)
- SSH.NET (>= 2025.1.0)
NuGet packages (161)
Showing the top 5 NuGet packages that depend on Testcontainers:
| Package | Downloads |
|---|---|
|
Testcontainers.PostgreSql
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. |
|
|
Testcontainers.MsSql
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. |
|
|
Testcontainers.Redis
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. |
|
|
Testcontainers.Azurite
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. |
|
|
Testcontainers.MongoDb
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. |
GitHub repositories (94)
Showing the top 20 popular GitHub repositories that depend on Testcontainers:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
|
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10
|
|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
|
|
dotnet/orleans
Cloud Native application framework for .NET
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
kurrent-io/KurrentDB
KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
|
|
|
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
|
|
|
Cysharp/MagicOnion
Unified Realtime/API framework for .NET platform and Unity.
|
|
|
Xabaril/AspNetCore.Diagnostics.HealthChecks
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
|
|
|
sshnet/SSH.NET
SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
|
|
|
open-telemetry/opentelemetry-dotnet
The OpenTelemetry .NET Client
|
|
|
fluentmigrator/fluentmigrator
Fluent migrations framework for .NET
|
|
|
evolutionary-architecture/evolutionary-architecture-by-example
Navigate the complex landscape of .NET software architecture with our step-by-step, story-like guide. Unpack the interplay between modular monoliths, microservices, domain-driven design, and various architectural patterns. Go beyond the one-size-fits-all solutions and understand how to blend these approaches based on your unique needs.
|
|
|
robinrodricks/FluentFTP
An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic directory listing parsing, File hashing/checksums, File permissions/CHMOD, FTP proxies, FXP support, UTF-8 support, Async/await support, Powershell support and more. Written entirely in C#.
|
|
|
eventflow/EventFlow
Async/await first CQRS+ES and DDD framework for .NET
|
|
|
JasperFx/wolverine
Supercharged .NET server side development!
|
|
|
recyclarr/recyclarr
Automatically sync TRaSH Guides to your Sonarr and Radarr instances
|
|
|
asynkron/protoactor-dotnet
Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
|
|
|
CoreWCF/CoreWCF
Main repository for the Core WCF project
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.11.0 | 2,399,719 | 3/12/2026 |
| 4.10.0 | 4,495,340 | 1/1/2026 |
| 4.9.0 | 2,445,394 | 11/23/2025 |
| 4.8.1 | 2,594,762 | 10/22/2025 |
| 4.8.0 | 576,858 | 10/19/2025 |
| 4.7.0 | 3,392,014 | 8/28/2025 |
| 4.6.0 | 4,658,768 | 6/13/2025 |
| 4.5.0 | 574,592 | 6/5/2025 |
| 4.4.0 | 3,870,331 | 4/14/2025 |
| 4.3.0 | 5,215,433 | 2/24/2025 |
| 4.2.0 | 1,380,305 | 2/10/2025 |
| 4.1.0 | 3,724,773 | 12/9/2024 |
| 4.1.0-beta.12035377103 | 2,597 | 11/26/2024 |
| 4.1.0-beta.11746011829 | 10,208 | 11/8/2024 |
| 4.0.0 | 3,471,011 | 11/1/2024 |
| 3.10.0 | 6,188,392 | 9/3/2024 |
| 3.9.0 | 8,648,725 | 6/16/2024 |
| 3.8.0 | 5,114,654 | 3/19/2024 |
| 3.8.0-beta.8238206979 | 7,881 | 3/11/2024 |
| 3.7.0 | 3,954,988 | 1/9/2024 |