Skip to content

Provides a wrapper around Docker's credential configuration.

License

Notifications You must be signed in to change notification settings

mthalman/docker-creds-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Creds Provider

This .NET library provides a wrapper around Docker's credential configuration. Credentials for a Docker registry are stored either in the operating system's native credential store or within Docker's configuration file. Docker Creds Provider determines which method is used for storing the credentials and returns the credentials for the requested registry.

Usage

DockerCredentials dockerHubCreds = await CredsProvider.GetCredentialsAsync("https://index.docker.io/v1/");

DockerCredentials privateRepoCreds = await CredsProvider.GetCredentialsAsync("contoso.azurecr.io");

The library is available as a NuGet package: Valleysoft.DockerCredsProvider.