Skip to content

registry: log out of Docker Hub when given docker.io - #7353

Closed
locker95 wants to merge 1 commit into
docker:masterfrom
locker95:fix/logout-docker-io
Closed

locker95 wants to merge 1 commit into
docker:masterfrom
locker95:fix/logout-docker-io

Conversation

@locker95

@locker95 locker95 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Fixes: #7326

docker login docker.io stores the creds on https://index.docker.io/v1/, same as a login with no server. logout was still looking for a literal docker.io key, so the Hub entry stayed.

Summary

treat docker.io as the default registry on logout, same path login already uses.

Release notes (optional)

- Fix `docker logout docker.io` leaving Docker Hub credentials in place.

docker login docker.io stores credentials on the index server.
logout looked up the name as given, so the Hub entry stayed.

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95

locker95 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

closing this. #7213, #7327 and #7336 already cover logout for docker.io.

@locker95 locker95 closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker logout docker.io does not remove Docker Hub credentials

1 participant