---
title: Connect your local development cluster to AutoOps
description: If you have an Elasticsearch cluster set up for local development or testing, you can connect it to AutoOps using Docker. Ensure your system meets the...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud on Kubernetes
---

# Connect your local development cluster to AutoOps
If you have an Elasticsearch cluster set up for local development or testing, you can connect it to AutoOps using Docker.

## Prerequisites

Ensure your system meets the following requirements before proceeding:
- You have set up [Elasticsearch for local development](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4474/deploy-manage/deploy/self-managed/local-development-installation-quickstart).
- You have installed [Docker Desktop](https://www.docker.com/products/docker-desktop).
- You have an Elastic Cloud account with the [Organization owner role](/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-manage-users#assign-roles).


## Connect your local development cluster to AutoOps

Complete the following steps to connect your local development cluster to AutoOps.
1. Run the following command in your terminal to open the `/etc/hosts` file in a text editor with administrator privileges:

```sh
vim /etc/hosts
```

1. On a new line in the `/etc/hosts` file, add an entry to map the Elasticsearch cluster URL to the IP address representing the local development cluster.
   The entry should be formatted as `127.0.0.1 {{hostname}}`.
2. Save the changes.
3. In your terminal, run the following command to reload the hostname service:
   - For Linux:
   ```sh
   /bin/systemctl restart systemd-hostnamed
   ```
   - For macOS:
   ```sh
   sudo dscacheutil -flushcache
   ```
4. Follow the instructions to [Connect to AutoOps](/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops#connect-to-autoops) with the following differences:
   - In the [Select installation method](/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops#select-installation-method) step, select **Docker**.
- In the [Configure agent](/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops#configure-agent) step, when prompted to enter your **Elasticsearch endpoint URL**, enter the name of your local development cluster or enter the following:
  ```sh
  http://localhost:9200
  ```
- In the [Install agent](/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops#install-agent) step, paste the command into the text editor and replace `docker run -d \` with:
  ```sh
  docker run -d --network host \
  ```
  This replacement is also required if your cluster is running on macOS.

After completing all the steps, you can [Access AutoOps](/elastic/docs-content/pull/4474/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops#access-autoops).