# FlociGcpContainerResource.withDockerSocket

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

Mounts the Docker socket into the Floci GCP container so that Cloud Run, Cloud SQL, and other container-backed services can launch sibling containers. Also sets `FLOCI_GCP_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 FlociGcpContainerResource {
  // ... omitted for brevity
  withDockerSocket(socketPath?: string): FlociGcpContainerResource;
}
```

## Signature

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

## Parameters

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

## Returns

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

## Defined on

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