Use the real registry endpoint in the login command.

This commit is contained in:
jakedt 2014-04-01 19:00:11 -04:00
parent 3525e383df
commit ca1970a2f4
2 changed files with 3 additions and 2 deletions

View file

@ -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)