Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withContainerRuntimeArgs

Method
📦 Aspire.Hosting v13.5.4
interface ContainerResource {
// ... omitted for brevity
withContainerRuntimeArgs(args: string[]): ContainerResource;
}

Signature

methodwithContainerRuntimeArgsbuilder
Adds a callback to be executed with a list of arguments to add to the container runtime run command when a container resource is started.
withContainerRuntimeArgs(args: string[]): ContainerResource
argsstring[]
ContainerResource

Applies to

This method applies to the following types: