Skip to content


Testcontainers can be used to automatically instantiate and manage Redpanda containers. More precisely Testcontainers uses the official Docker images for Redpanda


This module uses features provided in


Create a Redpanda to use it in your tests:

RedpandaContainer container = new RedpandaContainer("")

Now your tests or any other process running on your machine can get access to running Redpanda broker by using the following bootstrap server location:


Redpanda also provides a schema registry implementation. Like the Redpanda broker, you can access by using the following schema registry location:


Adding this module to your project dependencies

Add the following dependency to your pom.xml/build.gradle file:

testImplementation "org.testcontainers:redpanda:1.18.3"