diff options
author | Joffrey F <f.joffrey@gmail.com> | 2018-06-18 15:22:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 15:22:42 -0700 |
commit | f70545e89a70bf396d5e46732af8df737190cab0 (patch) | |
tree | 23a417ac42e3f661d39dbd23ebc7fb601c0250f0 /docker/api/build.py | |
parent | e88751cb9a235f31ec946c199b952b69dcc4cc0b (diff) | |
parent | e5f56247e3d6f6f0f325aab507d9845ad2c4c097 (diff) | |
download | docker-py-3.4.0.tar.gz |
Merge pull request #2062 from docker/3.4.0-release3.4.0
3.4.0 Release
Diffstat (limited to 'docker/api/build.py')
-rw-r--r-- | docker/api/build.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docker/api/build.py b/docker/api/build.py index f62a731..419255f 100644 --- a/docker/api/build.py +++ b/docker/api/build.py @@ -302,7 +302,8 @@ class BuildApiMixin(object): # credentials/native_store.go#L68-L83 for registry in self._auth_configs.get('auths', {}).keys(): auth_data[registry] = auth.resolve_authconfig( - self._auth_configs, registry + self._auth_configs, registry, + credstore_env=self.credstore_env, ) else: auth_data = self._auth_configs.get('auths', {}).copy() @@ -341,4 +342,9 @@ def process_dockerfile(dockerfile, path): ) # Dockerfile is inside the context - return path relative to context root - return (os.path.relpath(abs_dockerfile, path), None) + if dockerfile == abs_dockerfile: + # Only calculate relpath if necessary to avoid errors + # on Windows client -> Linux Docker + # see https://github.com/docker/compose/issues/5969 + dockerfile = os.path.relpath(abs_dockerfile, path) + return (dockerfile, None) |