# Connecting to Host Instance

In a Docker install environment, it's possible to establish a connection to the Keeper Connection Manager host instance using a special host name called **host.docker.internal**.

To configure this, update the file `/etc/kcm-setup/docker-compose.yml` **guacd** section to include the "`extra_hosts`" parameter, as seen below:

```
    guacd:
        image: keeper/guacd:2
        restart: unless-stopped
        environment:
            ACCEPT_EULA: "Y"
        volumes:
            - "common-storage:/var/lib/guacamole:rw"
        extra_hosts:
            - "host.docker.internal:host-gateway"

```

Update the docker environment for the change to take effect.

```
sudo ./kcm-setup.run stop
sudo ./kcm-setup.run upgrade
```

Then, from within Keeper Connection Manager, you can create a new connection which simply references the Hostname of `host.docker.internal`.

![Connecting to the KCM Host Instance](/files/ywFIby1tHuK4o34qcCCo)

For more information, see the below helpful article:

{% embed url="<https://medium.com/@TimvanBaarsen/how-to-connect-to-the-docker-host-from-inside-a-docker-container-112b4c71bc66>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeper-connection-manager/supported-protocols/connecting-to-host-instance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
