Skip to content

Commit 17c223f

Browse files
authored
fix(etcd): expose ports for the etcd nodes (#3162)
1 parent f0c529c commit 17c223f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/etcd/etcd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ func (c *EtcdContainer) Terminate(ctx context.Context, opts ...testcontainers.Te
6060
// Run creates an instance of the etcd container type
6161
func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*EtcdContainer, error) {
6262
req := testcontainers.ContainerRequest{
63-
Image: img,
64-
Cmd: []string{},
63+
Image: img,
64+
ExposedPorts: []string{clientPort, peerPort},
65+
Cmd: []string{},
6566
}
6667

6768
genericContainerReq := testcontainers.GenericContainerRequest{

0 commit comments

Comments
 (0)