'Rename this container. Similar to the ``docker rename`` command.
Args:
name (str): New name for the container
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

def rename(self, name):

    return self.client.api.rename(self.id, name)
