code: public static int resolveBindPort(CubeDockerConfiguration cubeDockerConfiguration, int exposedPort,
          String... excludedContainers) {
          final PortBindInfo portBinding = resolvePortBindPort(cubeDockerConfiguration, exposedPort, excludedContainers);
  
          if (portBinding == null) {
              return exposedPort;
          }
  
          return portBinding.getBindPort();
      }
docs: Method that tries to resolve a bind port for a given exposed port.
  
  @param cubeDockerConfiguration
  where all docker configuration is exposed
  @param exposedPort
  used to find the binding port
  @param excludedContainers
  where binding port search is ignored
  
  @return binding port