Skip to content

[20.10 backport] Stop slowing bash init by caching plugins path slowly - #4519

Merged
thaJeztah merged 1 commit into
docker:20.10from
thaJeztah:20.10_backport_docker-cli-slows-bash-init
Aug 23, 2023
Merged

[20.10 backport] Stop slowing bash init by caching plugins path slowly#4519
thaJeztah merged 1 commit into
docker:20.10from
thaJeztah:20.10_backport_docker-cli-slows-bash-init

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Fixes issue #3889 by only loading docker plugins path when needed: if it is fast enough than it shouldn't be a problem to do this on demand; OTOH if it is slow then we shouldn't do this during every bash session initialization, regardless if docker completion will be needed or not.

(cherry picked from commit 1da67be)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Fixes issue docker#3889 by only loading docker plugins path when needed: if it is fast enough than it shouldn't be a problem to do this on demand; OTOH if it is slow then we shouldn't do this during *every* bash session initialization, regardless if docker completion will be needed or not.
Signed-off-by: Oded Arbel <oded@geek.co.il>
(cherry picked from commit 1da67be)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah merged commit 12df1c1 into docker:20.10Aug 23, 2023
@thaJeztah
thaJeztah deleted the 20.10_backport_docker-cli-slows-bash-init branch August 23, 2023 12:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thaJeztah@rumpl@vvoland@guss77