Remove this image. Args: force (bool): Force removal of the image noprune (bool): Do not delete untagged parents Raises: :py:class:`docker.errors.APIError` If the server returns an error.
(self, force=False, noprune=False)
| 60 | return self.client.api.history(self.id) |
| 61 | |
| 62 | def remove(self, force=False, noprune=False): |
| 63 | """ |
| 64 | Remove this image. |
| 65 | |
| 66 | Args: |
| 67 | force (bool): Force removal of the image |
| 68 | noprune (bool): Do not delete untagged parents |
| 69 | |
| 70 | Raises: |
| 71 | :py:class:`docker.errors.APIError` |
| 72 | If the server returns an error. |
| 73 | """ |
| 74 | return self.client.api.remove_image( |
| 75 | self.id, |
| 76 | force=force, |
| 77 | noprune=noprune, |
| 78 | ) |
| 79 | |
| 80 | def save(self, chunk_size=DEFAULT_DATA_CHUNK_SIZE, named=False): |
| 81 | """ |
nothing calls this directly
no test coverage detected