List images on the server. Args: name (str): Only show images belonging to the repository ``name`` all (bool): Show intermediate image layers. By default, these are filtered out. filters (dict): Filters to be processed on the imag
(self, name=None, all=False, filters=None)
| 357 | ) |
| 358 | |
| 359 | def list(self, name=None, all=False, filters=None): |
| 360 | """ |
| 361 | List images on the server. |
| 362 | |
| 363 | Args: |
| 364 | name (str): Only show images belonging to the repository ``name`` |
| 365 | all (bool): Show intermediate image layers. By default, these are |
| 366 | filtered out. |
| 367 | filters (dict): Filters to be processed on the image list. |
| 368 | Available filters: |
| 369 | - ``dangling`` (bool) |
| 370 | - `label` (str|list): format either ``"key"``, ``"key=value"`` |
| 371 | or a list of such. |
| 372 | |
| 373 | Returns: |
| 374 | (list of :py:class:`Image`): The images. |
| 375 | |
| 376 | Raises: |
| 377 | :py:class:`docker.errors.APIError` |
| 378 | If the server returns an error. |
| 379 | """ |
| 380 | resp = self.client.api.images(name=name, all=all, filters=filters) |
| 381 | return [self.get(r["Id"]) for r in resp] |
| 382 | |
| 383 | def load(self, data): |
| 384 | """ |