Skip to content

Error message when container image can't be found during container publish is confusing #53252

Description

@DamianEdwards

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.

Activity

  1. added
    untriaged
    on Mar 4, 2026
  2. added
    Area-Containers
    on Mar 4, 2026
  3. baronfel commented on Mar 25, 2026

    @baronfel
    Member

    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.

  4. removed
    untriaged
    on Mar 25, 2026
  5. added theissue type on Mar 25, 2026
  6. lbussell commented on Mar 25, 2026

    @lbussell
    Member

    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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Containers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions