Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithContainerImage

Method
📦 Aspire.Hosting.Radius v17.0.0-preview.1.26565.2
func (ProjectResource) WithContainerImage(image string) ProjectResource

Signature

methodWithContainerImagebuilder
Associates a pre-built container image reference with a project resource so the Aspire.Hosting.Radius publisher can emit a valid Radius container manifest for it.
WithContainerImage(image string) ProjectResource
imagestringA fully-qualified image reference in [registry/]image[:tag] form (for example localhost:5001/apiservice:latest). When the tag is omitted latest is used.
ProjectResource

The same IResourceBuilder for chaining.

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

Applies to

This method applies to the following types:

typeCSharpAppResource
typeProjectResource