diff options
Diffstat (limited to 'docker/utils')
| -rw-r--r-- | docker/utils/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index e4a3c9e..b2834ad 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -129,7 +129,9 @@ def ping(url): except Exception: return False 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): |
