Skip to content

mthalman/DockerRegistryClient

Repository files navigation

Docker Registry Client

A .NET client library for the OCI Distribution Spec / Docker Registry HTTP API V2.

NuGet License: MIT

Installation

dotnet add package Valleysoft.DockerRegistryClient

Quick Start

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);
}

API Overview

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

Guides

License

This project is licensed under the MIT License.

About

.NET client interface for executing commands on a Docker registry's HTTP API.

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages