Kill or send a signal to the container. Args: signal (str or int): The signal to send. Defaults to ``SIGKILL`` Raises: :py:class:`docker.errors.APIError` If the server returns an error.
(self, signal=None)
| 277 | chunk_size, encode_stream) |
| 278 | |
| 279 | def kill(self, signal=None): |
| 280 | """ |
| 281 | Kill or send a signal to the container. |
| 282 | |
| 283 | Args: |
| 284 | signal (str or int): The signal to send. Defaults to ``SIGKILL`` |
| 285 | |
| 286 | Raises: |
| 287 | :py:class:`docker.errors.APIError` |
| 288 | If the server returns an error. |
| 289 | """ |
| 290 | |
| 291 | return self.client.api.kill(self.id, signal=signal) |
| 292 | |
| 293 | def logs(self, **kwargs): |
| 294 | """ |
no outgoing calls