Image metadata stored on the registry, including available platforms.
Method | __init__ |
Undocumented |
Method | has |
Check whether the given platform identifier is available for this digest. |
Method | pull |
Pull the image digest. |
Method | reload |
Load this object from the server again and update ``attrs`` with the new data. |
Instance Variable | attrs |
Undocumented |
Instance Variable | image |
Undocumented |
Property | id |
The ID of the object. |
Property | short |
The ID of the image truncated to 12 characters, plus the ``sha256:`` prefix. |
Inherited from Model
:
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __repr__ |
Undocumented |
Class Variable | id |
Undocumented |
Instance Variable | client |
Undocumented |
Instance Variable | collection |
Undocumented |
Check whether the given platform identifier is available for this digest. Args: platform (str or dict): A string using the ``os[/arch[/variant]]`` format, or a platform dictionary. Returns: (bool): ``True`` if the platform is recognized as available, ``False`` otherwise. Raises: :py:class:`docker.errors.InvalidArgument` If the platform argument is not a valid descriptor.
Pull the image digest. Args: platform (str): The platform to pull the image for. Default: ``None`` Returns: (:py:class:`Image`): A reference to the pulled image.
docker.models.resource.Model.reload
Load this object from the server again and update ``attrs`` with the new data.
docker.models.resource.Model.short_id
The ID of the image truncated to 12 characters, plus the ``sha256:`` prefix.