'Stop a container
:param container: The container to be stopped
:type  container: :class:`libcloud.container.base.Container`
:return: The container refreshed with current data
:rtype: :class:`libcloud.container.base.Container`'

def stop_container(self, container):

    result = self.connection.request(('%s/containers/%s?action=stop' % (self.baseuri, container.id)), method='POST').object
    return self._to_container(result)
