mirror of https://github.com/docker/docker-py.git
removed exception thrown if registry.hub.docker.com is explicitly defined in repository param for client.pull
This commit is contained in:
parent
6a63cb2c96
commit
5baa5e4883
|
@ -59,7 +59,7 @@ def resolve_repository_name(repo_name, insecure=False):
|
|||
raise errors.InvalidRepository(
|
||||
'Invalid repository name ({0})'.format(repo_name))
|
||||
|
||||
if 'index.docker.io' in parts[0] or 'registry.hub.docker.com' in parts[0]:
|
||||
if 'index.docker.io' in parts[0]:
|
||||
raise errors.InvalidRepository(
|
||||
'Invalid repository name, try "{0}" instead'.format(parts[1])
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue