Documentation

Java Go

Community Module

These modules are maintained by the community, outside of the Testcontainers project.

Description

etcd is a strongly consistent, distributed key-value store that provides a reliable way to store data that needs to be accessed by a distributed system or cluster of machines. It gracefully handles leader elections during network partitions and can tolerate machine failure, even in the leader node.

Examples

Dependency:
<dependency>
    <groupId>io.etcd</groupId>
    <artifactId>jetcd-core</artifactId>
    <version>0.8.2</version>
    <scope>test</scope>
</dependency>
Usage:
var etcdContainer = new EtcdContainer();
etcdContainer.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/etcd
Usage:
etcdContainer, err := etcd.Run(ctx, "gcr.io/etcd-development/etcd:v3.5.14")