'Stops a container. Similar to the ``docker stop`` command.
Args:
container (str): The container to stop
timeout (int): Timeout in seconds to wait for the container to
stop before sending a ``SIGKILL``. Default: 10
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

@utils.check_resource('container')
def stop(self, container, timeout=10):

    params = {'t': timeout}
    url = self._url('/containers/{0}/stop', container)
    res = self._post(url, params=params, timeout=(timeout + (self.timeout or 0)))
    self._raise_for_status(res)
