def net(self):
        """
        get ACTIVE port mappings of a container

        :return: dict:
        {
            "host_port": "container_port"
        }
        """
        try:
            return NetData(self.inspect(cached=True).response)
        except docker.errors.NotFound:
            raise NotAvailableAnymore()
def net ( self ) : try : return NetData ( self . inspect ( cached = True ) . response ) except docker . errors . NotFound : raise NotAvailableAnymore ( )
get ACTIVE port mappings of a container

        :return: dict:
        {
            "host_port": "container_port"
        }