MCPcopy Create free account
hub / github.com/docker/docker-py / image

Method image

docker/models/containers.py:37–44  ·  view source on GitHub ↗

The image of the container.

(self)

Source from the content-addressed store, hash-verified

35
36 @property
37 def image(self):
38 """
39 The image of the container.
40 """
41 image_id = self.attrs.get('ImageID', self.attrs['Image'])
42 if image_id is None:
43 return None
44 return self.client.images.get(image_id.split(':')[1])
45
46 @property
47 def labels(self):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected