Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/docker-py
/ convert_to_hostname
Function
convert_to_hostname
docker/auth.py:315–316 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
313
314
315
def
convert_to_hostname(url):
316
return
url.replace(
'http://'
,
''
).replace(
'https://'
,
''
).split(
'/'
, 1)[0]
317
318
319
def
decode_auth(auth):
Callers
2
resolve_index_name
Function · 0.85
get_all_credentials
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected