You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error message when container image can't be found during container publish is confusing #53252
I was trying to find the right value to put in the <ContainerFamily> property in the project to switch to using the Azure Linux base images and attempted it with what was apparently the wrong value a few times. The resultant error message is confusing given the actual issue:
C:\Program
Files\dotnet\sdk\10.0.103\Containers\build\Microsoft.NET.Build.Containers.targets(261,5): error CONTAINER1015: Unable to access the repository 'dotnet/aspnet' at tag '10.0-azurelinux-3.0' in the registry ''. Please confirm that this name and tag are present in the registry. [<path-to-project-csproj-file>]
The in the registry '' was particularly confusing. Once I put the right value in (azurelinux3.0 incidentally) it all worked fine.
In an ideal world, we'd be able to default to a 'live' answer to the question "what tags/families are available", but we also need a way to avoid any network usage for airgapped/offline builds as well as fallbacks/error handling for when the online mechanism fails.
Fixing that issue should reduce how confusing the error message is. It sill leaves the open question of "what are the valid values of ContainerFamily".
Activity
baronfel commentedon Mar 25, 2026
In an ideal world, we'd be able to default to a 'live' answer to the question "what tags/families are available", but we also need a way to avoid any network usage for airgapped/offline builds as well as fallbacks/error handling for when the online mechanism fails.
lbussell commentedon Mar 25, 2026
Seems like #53600 is actually the same issue.
Fixing that issue should reduce how confusing the error message is. It sill leaves the open question of "what are the valid values of ContainerFamily".