# FlociAzureContainerResource.withDockerSocket

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/typescript/communitytoolkit.aspire.hosting.floci.md)
- Defined on: [FlociAzureContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md)
- Version: `13.5.0`
- Kind: `method`

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;
}
```

## Signature

```typescript
withDockerSocket(socketPath?: string): FlociAzureContainerResource
```

## Parameters

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

## Returns

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

## Defined on

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