diff options
Diffstat (limited to 'docker/auth/auth.py')
-rw-r--r-- | docker/auth/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/auth/auth.py b/docker/auth/auth.py index d69c035..373df56 100644 --- a/docker/auth/auth.py +++ b/docker/auth/auth.py @@ -29,7 +29,7 @@ DOCKER_CONFIG_FILENAME = '.dockercfg' def expand_registry_url(hostname, insecure=False): if hostname.startswith('http:') or hostname.startswith('https:'): return hostname - if utils.ping('https://' + hostname + '/v1/_ping'): + if utils.ping_registry('https://' + hostname): return 'https://' + hostname elif insecure: return 'http://' + hostname |