Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

FlociAzureContainerResource.WithDockerSocket

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
type FlociAzureContainerResource interface {
// ... omitted for brevity
WithDockerSocket(options ...*WithDockerSocketOptions) FlociAzureContainerResource
}

Signature

methodWithDockerSocketbuilder
Mounts the Docker socket into the Floci Azure container so that Azure Functions and other container-backed services can launch sibling containers. Also sets FLOCI_AZ_DOCKER_DOCKER_HOST to unix:///var/run/docker.sock (the container-side path where the socket is always mounted) so Floci can connect to it.
WithDockerSocket(options ...*WithDockerSocketOptions) FlociAzureContainerResource
options...*WithDockerSocketOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDockerSocketOptions argument.

SocketPath*stringOptional. Host path to the Docker socket (default: /var/run/docker.sock). Non-standard paths (e.g. Podman at /run/user/1000/podman/podman.sock) are bind-mounted to /var/run/docker.sock inside the container.
FlociAzureContainerResource

A reference to the IResourceBuilder for further configuration.

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

Defined on

This method is defined on the following type: