A .NET client library for the OCI Distribution Spec / Docker Registry HTTP API V2.
dotnet add package Valleysoft.DockerRegistryClient
using Valleysoft.DockerRegistryClient;
using Valleysoft.DockerRegistryClient.Models;
using RegistryClient client = new("mcr.microsoft.com");
Page<RepositoryTags> tagsPage = await client.Tags.GetAsync("dotnet/sdk");
foreach (string tag in tagsPage.Value.Tags)
{
Console.WriteLine(tag);
}| Property | Operations | Docs |
|---|---|---|
client.Tags |
List tags | Tags |
client.Manifests |
Get, check existence, get digest | Manifests |
client.Blobs |
Download, upload, check existence, delete | Blobs |
client.Catalog |
List all repositories | Catalog |
client.Referrers |
Get referrers by digest, filter by artifact type | Referrers |
- Authentication — Anonymous, basic, token, and custom credentials
- Error Handling —
RegistryExceptionand error codes - Contributing
This project is licensed under the MIT License.