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.
(self, name)
| 367 | return self.client.api.remove_container(self.id, **kwargs) |
| 368 | |
| 369 | def rename(self, name): |
| 370 | """ |
| 371 | Rename this container. Similar to the ``docker rename`` command. |
| 372 | |
| 373 | Args: |
| 374 | name (str): New name for the container |
| 375 | |
| 376 | Raises: |
| 377 | :py:class:`docker.errors.APIError` |
| 378 | If the server returns an error. |
| 379 | """ |
| 380 | return self.client.api.rename(self.id, name) |
| 381 | |
| 382 | def resize(self, height, width): |
| 383 | """ |
no outgoing calls