Remove an image. Similar to the ``docker rmi`` command. Args: image (str): The image to remove force (bool): Force removal of the image noprune (bool): Do not delete untagged parents
(self, image, force=False, noprune=False)
| 501 | |
| 502 | @utils.check_resource('image') |
| 503 | def remove_image(self, image, force=False, noprune=False): |
| 504 | """ |
| 505 | Remove an image. Similar to the ``docker rmi`` command. |
| 506 | |
| 507 | Args: |
| 508 | image (str): The image to remove |
| 509 | force (bool): Force removal of the image |
| 510 | noprune (bool): Do not delete untagged parents |
| 511 | """ |
| 512 | params = {'force': force, 'noprune': noprune} |
| 513 | res = self._delete(self._url("/images/{0}", image), params=params) |
| 514 | return self._result(res, True) |
| 515 | |
| 516 | def search(self, term, limit=None): |
| 517 | """ |