@Override
    public List<String> getPortBindings() {
        return this.containerDef.portBindings.stream()
            .map(it -> String.format("%s:%s", it.getBinding(), it.getExposedPort()))
            .collect(Collectors.toList());
    }
Forces access to the tests host machine.
Use this method if you need to call {@link org.testcontainers.Testcontainers#exposeHostPorts(int...)}
after you start this container.

@return this
core/src/main/java/org/testcontainers/containers/GenericContainer.java