Use the real registry endpoint in the login command.
This commit is contained in:
parent
3525e383df
commit
ca1970a2f4
2 changed files with 3 additions and 2 deletions
|
@ -143,7 +143,8 @@ class DockerfileBuildContext(object):
|
|||
def build(self):
|
||||
# Login with the specified credentials (if any).
|
||||
if self._pull_credentials:
|
||||
logger.debug('Logging in with pull credentials.')
|
||||
logger.debug('Logging in with pull credentials: %s@%s',
|
||||
self._pull_credentials['username'], self._pull_credentials['registry'])
|
||||
self._build_cl.login(self._pull_credentials['username'], self._pull_credentials['password'],
|
||||
registry=self._pull_credentials['registry'], reauth=True)
|
||||
|
||||
|
|
Reference in a new issue