How to authenticate for AddContainer #3440
Unanswered
JohnVottero
asked this question in
Q&A
Replies: 3 comments 2 replies
-
AFAIK we don't have support for pulling from private registries in development. You may be able to work around this by manually pulling this image in your local registry (and entering credentials there to do so), then re-running the application. cc @karolz-ms |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is the support for this functionality planned? It would be convenient if Aspire could auto-pull the image from the remote registry. |
Beta Was this translation helpful? Give feedback.
1 reply
-
My workaround was to use CliWrap in the AppHost; await Cli.Wrap("az")
.WithArguments($"acr login --name {registry}")
.WithStandardOutputPipe(PipeTarget.ToDelegate(Console.Out.WriteLine))
.WithStandardErrorPipe(PipeTarget.ToDelegate(Console.Error.WriteLine))
.WithValidation(CommandResultValidation.None)
.ExecuteAsync(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use AddContainer(...) to add a container service in my Aspire AppHost. The container is in an Azure Container Registry. When I run the AppHost it fails with:
I tried adding a call to AddAzureProvisioning() in my AppHost thinking that would pickup the credentials from Visual Studio's Azure Service Authentication (where I am authenticated) but that did not help.
How can I add credentials for a container registry?
This is with Aspire Preview 4.
Beta Was this translation helpful? Give feedback.
All reactions