Skip to content
DocsTry Aspire
DocsTry

IDistributedApplicationBuilder.addContainer

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addContainer(
name: string,
image: AddContainerOptions): ContainerResource;
}

Signature

methodaddContainerbuilder
Adds a container resource to the application.
addContainer(
name: string,
image: AddContainerOptions): ContainerResource
namestring
imageAddContainerOptions
ContainerResource

Defined on

This method is defined on the following type: