mirror of https://github.com/docker/docker-py.git
Merge pull request #110 from tutumcloud/fix_auth_ping
Fix bug when checking HTTPS connection to private registries
This commit is contained in:
commit
732b69be2e
|
@ -36,7 +36,7 @@ def expand_registry_url(hostname):
|
|||
if '/' not in hostname[9:]:
|
||||
hostname = hostname + '/v1/'
|
||||
return hostname
|
||||
if utils.ping('https://' + hostname + '_ping'):
|
||||
if utils.ping('https://' + hostname + '/v1/_ping'):
|
||||
return 'https://' + hostname + '/v1/'
|
||||
return 'http://' + hostname + '/v1/'
|
||||
|
||||
|
|
Loading…
Reference in New Issue