Testcontainers 2.4.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET Standard 2.0
dotnet add package Testcontainers --version 2.4.0
NuGet\Install-Package Testcontainers -Version 2.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Testcontainers" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Testcontainers --version 2.4.0
#r "nuget: Testcontainers, 2.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Testcontainers as a Cake Addin
#addin nuget:?package=Testcontainers&version=2.4.0

// Install Testcontainers as a Cake Tool
#tool nuget:?package=Testcontainers&version=2.4.0


Open in GitHub Codespaces

NuGet CI/CD Alert Status Coverage

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.

Testcontainers Banner

Read the documentation here



Copyright (c) 2019 - 2023 Andre Hofmeister and other authors.

See contributors for all contributors.

Join our Slack workspace | Testcontainers OSS | Testcontainers Cloud

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Testcontainers:

Package Downloads

Package Description


Package Description


Utilities for integration testing an application built using the clean architecture packages.

VMelnalksnis.Testcontainers.Keycloak The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Testcontainers container for Keycloak


Utilities for simplified integration testing

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on Testcontainers:

Repository Stars
Unified Realtime/API framework for .NET platform and Unity.
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
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#.
Elastic APM .NET Agent
A microservices, built with .Net, DDD, CQRS, Event Sourcing, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
Version Downloads Last updated
2.4.0 4,748 2/1/2023
2.3.0 100,211 12/12/2022
2.3.0-beta.3547636764 958 11/25/2022
2.2.0 222,570 10/27/2022
2.2.0-beta.3336066153 171 10/27/2022
2.2.0-beta.3311860540 1,612 10/24/2022
2.2.0-beta.3290165812 346 10/20/2022
2.2.0-beta.3123645733 4,028 9/25/2022
2.2.0-beta.2835065501 11,878 8/10/2022
2.2.0-beta.2797896103 1,916 8/4/2022
2.2.0-beta.2760496496 1,133 7/29/2022
2.1.0 430,474 7/20/2022
2.1.0-beta.2698157448 6,797 7/19/2022
2.1.0-beta.2561986470 783 6/25/2022
2.1.0-beta.2543038937 83 6/22/2022
2.1.0-beta.2536126951 94 6/21/2022
2.0.1 27,853 6/22/2022
2.0.0 3,536 6/21/2022
1.7.0-beta.2530372824 74 6/20/2022 22,806 7/16/2019 551 7/11/2019 6,235 2/15/2019 2,279 9/27/2018 1,056 7/20/2018 879 7/4/2018
0.0.2-alpha 836 6/22/2018
0.0.1-alpha 737 3/7/2018