# FlociGcpContainerResource.WithDockerSocket

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/go/communitytoolkit.aspire.hosting.floci.md)
- Defined on: [FlociGcpContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource.md)
- Version: `13.6.1`
- 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

```go
type FlociGcpContainerResource interface {
    // ... omitted for brevity
    WithDockerSocket(options ...*WithDockerSocketOptions) FlociGcpContainerResource
}
```

## Signature

```go
WithDockerSocket(options ...*WithDockerSocketOptions) FlociGcpContainerResource
```

## Parameters

- `options` (`...*WithDockerSocketOptions`) -- optional settings, see [Options](#options)

## Options

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

- `SocketPath` (`*string`) -- Optional. 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.

## Returns

[`FlociGcpContainerResource`](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource.md) -- A reference to the `IResourceBuilder` for further configuration.

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

## Defined on

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