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

[19.03 backport] Don't filter out registries to logout from with config file contents #2592

Merged

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jun 17, 2020

backport of #2583

supersedes / closes

closes #1917
closes #2346
fixes #204

Previously, if a registry AuthInfo was not present in the CLI config file, docker logout could not be used
to ask the credential helper to forget about it. It causes problem for people working with
multiple alternative config files, and it causes problems for cases like Docker Desktop w/ WSL 2, as
it uses the same win32 credential helper as the Windows CLI, but a different config file, leading to
bugs where I cannot logout from a registry from wsl2 if I logged in from Windows and vice-versa.

- Description for the changelog

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

Previously, if a registry AuthInfo was not present in the CLI config file, docker logout could not be used
to ask the credential helper to forget about it. It causes problem for people working with
multiple alternative config files, and it causes problems for cases like Docker Desktop w/ WSL 2, as
it uses the same win32 credential helper as the Windows CLI, but a different config file, leading to
bugs where I cannot logout from a registry from wsl2 if I logged in from Windows and vice-versa.

Signed-off-by: Simon Ferquel <[email protected]>
(cherry picked from commit 6248f2f)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@tiborvass tiborvass merged commit 0ed913b into docker:19.03 Jun 17, 2020
@thaJeztah thaJeztah deleted the 19.03_backport_logout_config_out_of_sync2 branch June 17, 2020 17:41
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.

3 participants