Share via


IContainerRegistry.Repository Property

Definition

Gets the repository path within the container registry.

public virtual Aspire.Hosting.ApplicationModel.ReferenceExpression? Repository { get; }
member this.Repository : Aspire.Hosting.ApplicationModel.ReferenceExpression
Public Overridable ReadOnly Property Repository As ReferenceExpression

Property Value

Remarks

The repository represents the namespace or path segment that appears after the registry endpoint in a container image reference. For example:

  • For Docker Hub (docker.io): typically a username like captainsafia
  • For GitHub Container Registry (ghcr.io): typically username/reponame
  • For Azure Container Registry: typically left empty as images are pushed directly to the registry
When not null, the repository is combined with the image name to form the full image path: {endpoint}/{repository}/{imageName}:{tag}. When null, the image path is: {endpoint}/{imageName}:{tag}.

Applies to