Skip to content

Commit a4dcdeb

Browse files
committed
Fix credstore_env parameter in docker.from_env
Fixes #2627 * Retrieve `credstore_env` from the environment and add it to the `params` dictionary if it exists. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/docker/docker-py/issues/2627?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent db7f8b8 commit a4dcdeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/utils/utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ def kwargs_from_env(environment=None):
385385
verify=tls_verify,
386386
)
387387

388+
credstore_env = environment.get('DOCKER_CREDSTORE_ENV')
389+
if credstore_env:
390+
params['credstore_env'] = credstore_env
391+
388392
return params
389393

390394

0 commit comments

Comments
 (0)