Open afscrome opened 3 weeks ago
I disagree slightly - we do not use local registries for storage, and to my knowledge neither do Jib and ko. Instead, we should enable using the local storage we already maintain for blobs as a fallback location for manifests as well. This would mean
My main desire is that if using dotnet publish /t:PublishContainer
in a local dev loop, I want to that to continue to work fine if I loose network connectivity. (e.g. network outage, working on a train / plane etc.)
My initial thinking is that currently the tooling gets unhappy with the default command if you publish without a local registry, so using the local registry seemed reasonable. But if there's an alternative solution I'm not too fussed.
error : Cannot find docker/podman executable. [C:\src\ACTest\app\Sample.csproj]
error CONTAINER1012: The local registry is not available, but pushing to a local registry was requested. [C:\src\A
Currently
dotnet publish /t:PublishContainer
will fail if you have no network connectivity.If you cannot connect to the remote registry (e.g.
mcr.microsoft.com
,MYORG.azurecr.io
), the publish process should fall back to the local registry to get the base image. (Perhaps emitting a warning to say that it may not be using the latest container version)Repro Steps
dotnet publish /t:PublishContainer
Expected Results:
The SDK build should fall back to any locally cached version of the base image in your local registry
Actual Results: