# ContainerImagePushOptions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerImagePushOptions.cs)

Represents options for pushing container images to a registry.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class ContainerImagePushOptions
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting/ContainerImagePushOptions`
- Public instance properties are exported as ATS capabilities.

## Remarks

This class allows customization of how container images are named and tagged when pushed to a container registry. The [ContainerImagePushOptions.RemoteImageName](/reference/api/csharp/aspire.hosting/containerimagepushoptions/properties.md#remoteimagename) specifies the repository path (without registry endpoint or tag), and [ContainerImagePushOptions.RemoteImageTag](/reference/api/csharp/aspire.hosting/containerimagepushoptions/properties.md#remoteimagetag) specifies the tag to apply. Use [ContainerImagePushOptions.GetFullRemoteImageNameAsync(IContainerRegistry, CancellationToken)](/reference/api/csharp/aspire.hosting/containerimagepushoptions/methods.md#getfullremoteimagenameasync-icontainerregistry-cancellationtoken) to construct the complete image reference including registry endpoint and tag.

## Constructors

- [ContainerImagePushOptions](/reference/api/csharp/aspire.hosting/containerimagepushoptions/constructors.md#constructor)

## Properties

- [RemoteImageName](/reference/api/csharp/aspire.hosting/containerimagepushoptions/properties.md#remoteimagename) : `string?` `get; set` -- Gets or sets the remote image name (repository path without registry endpoint or tag).
- [RemoteImageTag](/reference/api/csharp/aspire.hosting/containerimagepushoptions/properties.md#remoteimagetag) : `string?` `get; set` -- Gets or sets the remote image tag.

## Methods

- [GetFullRemoteImageNameAsync(IContainerRegistry, CancellationToken)](/reference/api/csharp/aspire.hosting/containerimagepushoptions/methods.md#getfullremoteimagenameasync-icontainerregistry-cancellationtoken) : `Task<string>` -- Gets the full remote image name including registry endpoint and tag.
