Show the history of an image. Args: image (str): The image to show history for Returns: (list): The history of the image Raises: :py:class:`docker.errors.APIError` If the server returns an error.
(self, image)
| 40 | |
| 41 | @utils.check_resource('image') |
| 42 | def history(self, image): |
| 43 | """ |
| 44 | Show the history of an image. |
| 45 | |
| 46 | Args: |
| 47 | image (str): The image to show history for |
| 48 | |
| 49 | Returns: |
| 50 | (list): The history of the image |
| 51 | |
| 52 | Raises: |
| 53 | :py:class:`docker.errors.APIError` |
| 54 | If the server returns an error. |
| 55 | """ |
| 56 | res = self._get(self._url("/images/{0}/history", image)) |
| 57 | return self._result(res, True) |
| 58 | |
| 59 | def images(self, name=None, quiet=False, all=False, filters=None): |
| 60 | """ |