IContainerRegistry.Repository Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 likecaptainsafia - For GitHub Container Registry (
ghcr.io): typicallyusername/reponame - For Azure Container Registry: typically left empty as images are pushed directly to the registry
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}.