- Docker
- Docker Compose
The easiest way to install Docker and Docker Compose is to install Docker Desktop (for Mac and Windows). You can also easily install Docker and Docker Compose on Linux.
Follow the instructions here.
Follow the instructions here.
Follow the instructions here.
In this directory ($LAB_ROOT/docker) you will find a file called docker-compose.yml
.
To start the Kafka cluster, run the following command in the terminal:
docker compose up
You can leave the terminal open while the Kafka cluster is running.
To shutdown the Kafka cluster, run the following command in the terminal:
docker compose down
If you have issues running the docker compose file, you can try the following:
- Make sure Docker Desktop is running.
- Make sure you have the latest version of Docker Desktop.
- Make sure you have at least 4GB of RAM allocated to Docker.
If you experience volume corruption, you can try the following:
- Find the name of your volume (typicall
docker_kafka_data
) - Delete the volume using the following command:
docker volume rm <volume_name>
- Run
docker compose up
again.