MrRabbit.HealthChecks.Container.Client
10.0.0
dotnet add package MrRabbit.HealthChecks.Container.Client --version 10.0.0
NuGet\Install-Package MrRabbit.HealthChecks.Container.Client -Version 10.0.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="MrRabbit.HealthChecks.Container.Client" Version="10.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MrRabbit.HealthChecks.Container.Client" Version="10.0.0" />
<PackageReference Include="MrRabbit.HealthChecks.Container.Client" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MrRabbit.HealthChecks.Container.Client --version 10.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MrRabbit.HealthChecks.Container.Client, 10.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MrRabbit.HealthChecks.Container.Client@10.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MrRabbit.HealthChecks.Container.Client&version=10.0.0
#tool nuget:?package=MrRabbit.HealthChecks.Container.Client&version=10.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HealthCheck
Problem
In new versions of Microsoft container images you can't simply run command to install curl. So how you can check status of your app?
Solution
Install package
dotnet add package MrRabbit.HealthChecks.Container.Client
Edit your docker-compose.yml file
healthcheck:
test: [ "CMD", "dotnet", "/[PATH TO YOUR APP]/healthcheck.dll", "ADDRESS TO HEALTH CHECK ENDPOINT" ]
Example
healthcheck:
test: [ "CMD", "dotnet", "/app/healthcheck.dll", "http://localhost:8080/hc" ]
It works on container images chiseled version too.
Sample web app
How it works
Nuget packages adds content files which are copy to build output directory.
healthcheck.dll
healthcheck.runtimeconfig
You can run it from terminal in container
dotnet ./healthcheck.dll
Changelog
10.0.0
- added support for .net 10
9.0.1
- removed compilation runtime linux-x64 for any cpu support
9.0.0
- added support for .net 9
8.0.0
- first release
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0 | 16,809 | 11/15/2025 |
| 9.0.1 | 18,204 | 1/29/2025 |
| 9.0.0 | 4,298 | 12/26/2024 |
| 9.0.0-preview.1 | 124 | 12/24/2024 |
| 8.0.0 | 670 | 10/12/2024 |