port

public Optional<Integer> port()

Obtains the port at which the container is exposed, or empty Optional if this is an in-process container.

See also