Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.0 backport] Stop slowing bash init by caching plugins path slowly #4518

Merged

Conversation

thaJeztah
Copy link
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>
@codecov-commenter
Copy link

Codecov Report

Merging #4518 (8f67e81) into 23.0 (7e32d44) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             23.0    #4518      +/-   ##
==========================================
- Coverage   58.99%   58.98%   -0.01%     
==========================================
  Files         288      286       -2     
  Lines       24824    24821       -3     
==========================================
- Hits        14645    14641       -4     
  Misses       9298     9298              
- Partials      881      882       +1     

@thaJeztah thaJeztah merged commit 92955ed into docker:23.0 Aug 23, 2023
74 checks passed
@thaJeztah thaJeztah deleted the 23.0_backport_docker-cli-slows-bash-init branch August 23, 2023 12:04
Sign up for free to 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.

None yet

5 participants