docs: public String portsAsString() {
      final StringBuilder sb = new StringBuilder();
      if (ports() != null) {
        for (final PortMapping port : ports()) {
          if (sb.length() > 0) {
            sb.append(", ");
          }
          if (port.ip() != null) {
            sb.append(port.ip()).append(":");
          }
          if (port.publicPort() > 0) {
            sb.append(port.privatePort()).append("->").append(port.publicPort());
          } else {
            sb.append(port.privatePort());
          }
          sb.append("/").append(port.type());
        }
      }
  
      return sb.toString();
    }