mirror of
https://github.com/docker/compose.git
synced 2026-07-09 09:52:23 +00:00
Use original LD_LIBRARY_PATH when shelling out to credential stores
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
f0674be578
commit
c187d3c39f
1 changed files with 7 additions and 0 deletions
|
|
@ -117,6 +117,13 @@ def docker_client(environment, version=None, tls_config=None, host=None,
|
|||
|
||||
kwargs['user_agent'] = generate_user_agent()
|
||||
|
||||
# Workaround for
|
||||
# https://pyinstaller.readthedocs.io/en/v3.3.1/runtime-information.html#ld-library-path-libpath-considerations
|
||||
if 'LD_LIBRARY_PATH_ORIG' in environment:
|
||||
kwargs['credstore_env'] = {
|
||||
'LD_LIBRARY_PATH': environment.get('LD_LIBRARY_PATH_ORIG'),
|
||||
}
|
||||
|
||||
client = APIClient(**kwargs)
|
||||
client._original_base_url = kwargs.get('base_url')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue