Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithContainerRuntimeArgs

Method
📦 Aspire.Hosting v17.0.0
func (ContainerResource) 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
args[]stringThe arguments to be passed to the container runtime run command when the container resource is started.
ContainerResource

The resource builder.

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

Applies to

This method applies to the following types: