MCPcopy
hub / github.com/docker/docker-py / get

Method get

docker/models/images.py:317–333  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 6

buildMethod · 0.95
listMethod · 0.95
loadMethod · 0.95
pullMethod · 0.95
labelsMethod · 0.45
tagsMethod · 0.45

Calls 2

prepare_modelMethod · 0.80
inspect_imageMethod · 0.80

Tested by

no test coverage detected