Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe
main
Commits
016d9d21
Commit
016d9d21
authored
Jan 09, 2017
by
Daniele Venzano
Browse files
Enable docker-py version detection to prevent "client is newer than server" errors
parent
91e143eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_lib/swarm_client.py
View file @
016d9d21
...
...
@@ -134,7 +134,7 @@ class SwarmClient:
else
:
raise
ZoeLibException
(
'Unsupported URL scheme for Swarm'
)
log
.
debug
(
'Connecting to Swarm at {}'
.
format
(
manager
))
self
.
cli
=
docker
.
Client
(
base_url
=
manager
)
self
.
cli
=
docker
.
Client
(
base_url
=
manager
,
version
=
"auto"
)
def
info
(
self
)
->
SwarmStats
:
"""Retrieve Swarm statistics. The Docker API returns a mess difficult to parse."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment