When you are building clients using .NET, Docker.DotNet helps interact with Docker Remote API. Docker.DotNet is fully asynchronous, designed to be non-blocking and object-oriented way to interact with container host programmatically.
The library can be added to the project by running the following command in the NuGet Package Manager Console.
PM> Install-Package Docker.DotNet
Alternatively, right-click on your project in Visual Studio, choose Manage NuGet Packages and search for Docker.Dotnet and click Install. This section show you a few key methods using .NET library for Docker.
To start communicating with your Windows Container host, we should create a client first. The following code shows you how to create a Docker Client. DockerClient is part of the Docker.Dotnet namespace so include the Docker.Dotnet code in the namespaces section.
DockerClient client = new DockerClientConfiguration...