Documentation

Go

Description

Socat provides a utility container for TCP port forwarding and network tunneling between services.

Examples

Dependency:
go get github.com/testcontainers/testcontainers-go/modules/socat
Usage:
socatContainer, err := socat.Run(
  context.Background(),
  socat.DefaultImage,
  socat.WithTarget(socat.NewTarget(8080, "service")),
)