mirror of https://github.com/docker/docker-py.git
Merge branch 'master' of https://github.com/cesanta/docker-py into cesanta-master
This commit is contained in:
commit
d70aa1e45c
|
@ -129,7 +129,9 @@ def ping(url):
|
||||||
except Exception:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return res.status_code < 400
|
# We don't send yet auth headers
|
||||||
|
# and a v2 registry will respond with status 401
|
||||||
|
return res.status_code == 401 or res.status_code < 400
|
||||||
|
|
||||||
|
|
||||||
def _convert_port_binding(binding):
|
def _convert_port_binding(binding):
|
||||||
|
|
Loading…
Reference in New Issue