addContainer
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addContainer( name: string, image: string | AddContainerOptions): ContainerResource;}Signature
method
addContainer builderAdds a container resource to the application.
addContainer( name: string, image: string | AddContainerOptions): ContainerResourceParameters
namestringThe name of the resource.imagestring | AddContainerOptions The image name or image options for the container.Returns
ContainerResource Applies to
This method applies to the following types: