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

Method __init__

docker/models/swarm.py:14–22  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

12 id_attribute = 'ID'
13
14 def __init__(self, *args, **kwargs):
15 super().__init__(*args, **kwargs)
16 if self.client:
17 try:
18 self.reload()
19 except APIError as e:
20 # FIXME: https://github.com/docker/docker/issues/29192
21 if e.response.status_code not in (406, 503):
22 raise
23
24 @property
25 def version(self):

Callers

nothing calls this directly

Calls 1

reloadMethod · 0.95

Tested by

no test coverage detected