DEV Community

Antoine
Antoine

Posted on

How to use private Nuget feed from Docker

Previously, i have tried to use private Nuget feed hosted on Azure DevOps but face the issue to pass credentials to access it from Docker and perform the restore without nuget.exe.

It turns out the point has since been solved by Microsoft.

The solution is to use a this tool made by Microsoft and pass a Personal Access Token (PAT) in the Docker. I use a multi stage build so the credentials will be ephemeral.

The Github provides a sample on how to use it.

Hope it helps !

Credit for the idea!

Top comments (1)

Collapse
 
devangagarwal7 profile image
Devang Agarwal

Do you know how useless your post is? You could have at least included a few snippets or steps to do it rather then providing some links. Even I would have got those links if searched more.