'Export the contents of a filesystem as a tar archive.
Args:
container (str): The container to export
Returns:
(str): The filesystem tar archive
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

@utils.check_resource('container')
def export(self, container):

    res = self._get(self._url('/containers/{0}/export', container), stream=True)
    self._raise_for_status(res)
    return res.raw
