The Culture of Code

docker

2020


Running Testcontainers On Dynamic Ports

Running integration tests locally with Docker on fixed ports is not always possible due to port conflicts. This is especially true when running tests in shared CI environment with shared workers.

Fortunately, testcontainers allow to start Docker containers listening on a random port.