Skip to content
DocsTry Aspire
DocsTry

withContainerRuntimeArgs

Method
📦 Aspire.Hosting v13.4.0
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: