Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithContainerRegistry

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithContainerRegistry(registry Resource) Resource

Signature

methodWithContainerRegistrybuilder
Configures the resource to use the specified container registry for container image operations.
WithContainerRegistry(registry Resource) Resource
registryResourceThe container registry resource builder.
Resource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: