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

Method version

docker/models/services.py:19–25  ·  view source on GitHub ↗

The version number of the service. If this is not the same as the server, the :py:meth:`update` function will not work and you will need to call :py:meth:`reload` before calling it again.

(self)

Source from the content-addressed store, hash-verified

17
18 @property
19 def version(self):
20 """
21 The version number of the service. If this is not the same as the
22 server, the :py:meth:`update` function will not work and you will
23 need to call :py:meth:`reload` before calling it again.
24 """
25 return self.attrs.get('Version').get('Index')
26
27 def remove(self):
28 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected