docs: def get_ports(self):
          """
          get ports specified in container metadata
  
          :return: list of str
          """
          ports = []
          container_ports = self.inspect(refresh=True)["NetworkSettings"]["Ports"]
          if not container_ports:
              return ports
          for p in container_ports:
              # TODO: gracefullness, error handling
              ports.append(p.split("/")[0])
          return ports