Closed dotnetian closed 6 months ago
Hi Firstly, Are you running init, and saying no to everything? In that case, dont use init, its only needed if you wish to actually override some baseline values
Secondly - where are you images pushed to? Do they have a Container Registry set in the projects etc, or are they pushing directly to Docker? If its the latter, I suggest ensuring you are on the latest version of docker desktop, or at least one thats been released in the last few months (4.28+?)
Also ensure you are setting ImagePullPolicy to IfNotPresent
And if that doesn't work - its something to do with your machine. The docker shim that enables images pulling images via docker desktops kubernetes instance automatically from the docker store. Perhaps switching to the containerd backend will help but shouldn't be required.
You can always spin up a local registry, and set that in the init settings, or on command line to try
docker run -d -p 5001:5000 --restart always --name registry registry:2
then in your AppHost directory, run aspirate init
When it asks if you'd like to use a fall-back container registry, say (Y)
and enter: localhost:5001
When the Aspire AppHost is deployed either to a local docker-desktop cluster or to a production cluster, this error is given by pods.
And when I try to get logs of one of the services, I get this error: