Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

IContainerRegistry Properties

InterfaceProperties3 members
Represents container registry information for deployment targets.
Gets the endpoint URL of the container registry.
public abstract ReferenceExpression Endpoint { get; }
An empty endpoint value indicates a local container registry where images are built and used locally without being pushed to a remote registry (e.g., Docker Compose scenarios).
Gets the name of the container registry.
public abstract ReferenceExpression Name { get; }
Gets the repository path within the container registry.
public virtual ReferenceExpression? Repository { get; }
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}.