You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET (C#) Client Library for interacting with a Docker Registry API (v2 only).
Setup
Install nuget package into your project via powershell:
PM>Install-Package Docker.Registry.DotNet
Add nuget package via dotnet CLI:
dotnet add package Docker.Registry.DotNet
Usage
Local Hub
varconfiguration=newRegistryClientConfiguration("https://localhost:5000");//configuration.UsePasswordOAuthAuthentication("username", "password")using(varclient=configuration.CreateClient()){// get catalogvarcatalog=awaitclient.Catalog.GetCatalog();// list tags for the first catalogvartags=awaitclient.Tags.ListTags(catalog?.Repositories.FirstOrDefault());}
Remote Hub with Authentication
varconfiguration=newRegistryClientConfiguration("https://proget.mycompany.com");configuration.UsePasswordOAuthAuthentication("username","password");using(varclient=configuration.CreateClient()){// get catalogvarcatalog=awaitclient.Catalog.GetCatalog();// list tags for the first catalogvartags=awaitclient.Tags.ListTags(catalog?.Repositories.FirstOrDefault());}