dotnet / Docker.DotNet

:whale: .NET (C#) Client Library for Docker API
https://www.nuget.org/packages/Docker.DotNet/
MIT License
2.23k stars 381 forks source link

What units are HealthConfig.StartPeriod in? #659

Closed njlr closed 10 months ago

njlr commented 10 months ago

The minimum working value I could find is 1_000_000L, which suggests nanoseconds.

Is this correct?

And should it be a TimeSpan argument?

HofmeisterAn commented 10 months ago

And should it be a TimeSpan argument?

No, it's a long. The docs says:

Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.