The Docker SDK for .NET provides programmatic access to a Docker daemon. It's free, open-source, and painstakingly documented. Supports .NET 5.0 and later.
NuGet package | documentation | source code