MCPcopy Index your code
hub / github.com/docker/docker-py / pull

Method pull

docker/models/images.py:165–177  ·  view source on GitHub ↗

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.

(self, platform=None)

Source from the content-addressed store, hash-verified

163 return self.id[:19]
164
165 def pull(self, platform=None):
166 """
167 Pull the image digest.
168
169 Args:
170 platform (str): The platform to pull the image for.
171 Default: ``None``
172
173 Returns:
174 (:py:class:`Image`): A reference to the pulled image.
175 """
176 repository, _ = parse_repository_tag(self.image_name)
177 return self.collection.pull(repository, tag=self.id, platform=platform)
178
179 def has_platform(self, platform):
180 """

Callers 2

runMethod · 0.45
pullMethod · 0.45

Calls 1

parse_repository_tagFunction · 0.85

Tested by

no test coverage detected