Gets an image. Args: name (str): The name of the image. Returns: (:py:class:`Image`): The image. Raises: :py:class:`docker.errors.ImageNotFound` If the image does not exist. :py:class:`docker.errors.A
(self, name)
| 315 | raise BuildError(last_event or 'Unknown', result_stream) |
| 316 | |
| 317 | def get(self, name): |
| 318 | """ |
| 319 | Gets an image. |
| 320 | |
| 321 | Args: |
| 322 | name (str): The name of the image. |
| 323 | |
| 324 | Returns: |
| 325 | (:py:class:`Image`): The image. |
| 326 | |
| 327 | Raises: |
| 328 | :py:class:`docker.errors.ImageNotFound` |
| 329 | If the image does not exist. |
| 330 | :py:class:`docker.errors.APIError` |
| 331 | If the server returns an error. |
| 332 | """ |
| 333 | return self.prepare_model(self.client.api.inspect_image(name)) |
| 334 | |
| 335 | def get_registry_data(self, name, auth_config=None): |
| 336 | """ |