# FlociAwsContainerResource.withDockerSocket

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

Mounts the Docker socket into the Floci container so that Lambda and other container-backed AWS services can launch sibling containers. Also sets `FLOCI_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 FlociAwsContainerResource {
  // ... omitted for brevity
  withDockerSocket(socketPath?: string): FlociAwsContainerResource;
}
```

## Signature

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

## Parameters

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

## Returns

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

## Defined on

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