Get detailed information about an image. Similar to the ``docker inspect`` command, but only for images. Args: image (str): The image to inspect Returns: (dict): Similar to the output of ``docker inspect``, but as a single dict
(self, image)
| 233 | |
| 234 | @utils.check_resource('image') |
| 235 | def inspect_image(self, image): |
| 236 | """ |
| 237 | Get detailed information about an image. Similar to the ``docker |
| 238 | inspect`` command, but only for images. |
| 239 | |
| 240 | Args: |
| 241 | image (str): The image to inspect |
| 242 | |
| 243 | Returns: |
| 244 | (dict): Similar to the output of ``docker inspect``, but as a |
| 245 | single dict |
| 246 | |
| 247 | Raises: |
| 248 | :py:class:`docker.errors.APIError` |
| 249 | If the server returns an error. |
| 250 | """ |
| 251 | return self._result( |
| 252 | self._get(self._url("/images/{0}/json", image)), True |
| 253 | ) |
| 254 | |
| 255 | @utils.minimum_version('1.30') |
| 256 | @utils.check_resource('image') |