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

Method version

docker/models/nodes.py:9–15  ·  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

7
8 @property
9 def version(self):
10 """
11 The version number of the service. If this is not the same as the
12 server, the :py:meth:`update` function will not work and you will
13 need to call :py:meth:`reload` before calling it again.
14 """
15 return self.attrs.get('Version').get('Index')
16
17 def update(self, node_spec):
18 """

Callers 10

test_rename_containerMethod · 0.45
test_versionMethod · 0.45
test_client_initMethod · 0.45
test_versionMethod · 0.45
test_versionMethod · 0.45
test_versionMethod · 0.45
has_platformMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 9

test_rename_containerMethod · 0.36
test_versionMethod · 0.36
test_client_initMethod · 0.36
test_versionMethod · 0.36
test_versionMethod · 0.36
test_versionMethod · 0.36