# withDockerSocket

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/typescript/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

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.

## Definition

```typescript
interface FlociAzureContainerResource {
  // ... omitted for brevity
  withDockerSocket(socketPath?: string): FlociAzureContainerResource
}
```

## Parameters

- `socketPath` (`string`) `optional` `= /var/run/docker.sock`

## Returns

[FlociAzureContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md) `builder`

## Applies to

- [FlociAzureContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md)
