# Docker

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* At least 1Gb of memory
* Two available Kafka API compatible Clusters

### Configure K2K <a href="#configure-hq" id="configure-hq"></a>

To run K2K, you need to provide a YAML configuration file that defines your replication pipeline. This file tells K2K how to move and transform your data.

First, create your replication pipeline definition in a YAML file. For example, let's say you name it `pipeline.yaml`. This file describes the specifics of your data replication.

### Running K2K <a href="#configure-hq" id="configure-hq"></a>

To run K2K as a Docker container, ensure you have your `pipeline.yaml` file ready. Navigate to the directory containing the `pipeline.yaml` file and execute the following command. This command will mount your configuration file into the container and set up the required environment variables for K2K and OpenTelemetry.

{% code title="terminal" %}

```bash
docker run --rm -it \
  -v "$(pwd):/pipelines" \
  -e K2K_PIPELINE_FOLDER="/pipelines" \
  -e OTEL_SERVICE_NAME="k2k" \
  -e OTEL_METRICS_EXPORTER=console \
  -e OTEL_TRACES_EXPORTER=none \
  -e OTEL_LOGS_EXPORTER=none \
  --name k2k \
  lensesio/k2k:1.0.0 \
  k2k start -f /pipelines/pipeline.yaml -t
  
  
```

{% endcode %}

> **Warning:** OTEL traces and logs are not supported for now.
