# IContainerRegistry Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [IContainerRegistry](/reference/api/csharp/aspire.hosting/icontainerregistry.md)
- Kind: `Properties`
- Members: `3`

Represents container registry information for deployment targets.

## Endpoint

- Name: `Endpoint`
- Modifiers: `abstract` `get`
- Returns: [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md)

Gets the endpoint URL of the container registry.

```csharp
public abstract ReferenceExpression Endpoint { get; }
```

## Remarks

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

## Name

- Name: `Name`
- Modifiers: `abstract` `get`
- Returns: [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md)

Gets the name of the container registry.

```csharp
public abstract ReferenceExpression Name { get; }
```

## Repository

- Name: `Repository`
- Modifiers: `virtual` `nullable` `get`
- Returns: [ReferenceExpression?](/reference/api/csharp/aspire.hosting/referenceexpression.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/IContainerRegistry.cs#L40)

Gets the repository path within the container registry.

```csharp
public virtual ReferenceExpression? Repository { get; }
```

## 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}`.
