Skip to content

Conversation

@kiview
Copy link
Member

@kiview kiview commented Apr 13, 2022

There seem to have been different changes around Docker Desktop, its used authentication mechanisms in conjunction with docker-credential-desktop and the Docker Hub registry.

This led to the problem, that Testcontainers would interact with docker-credential-desktop in a way, that would provide us with wrong credentials, depending on how the Docker Hub login was performed (although this is not completely understood yet).

This is an experimental fix, that tries to restore the previous behavior.

Fixes #5121

@kiview
Copy link
Member Author

kiview commented Apr 19, 2022

Docker CLI uses https://index.docker.io/v1/ in their docs as an example API response:
https://github.com/moby/moby/search?q=https%3A%2F%2Findex.docker.io%2Fv1%2F

Regarding their implementation, they likely don't have a hardcoded value anywhere (as I can see so far), but just use the value they query from another location or endpoint, but I have to continue following their implementation code, to connect all the dots there. We can likely replicate this and should become much more robust and portable in our implementation.

@bsideup
Copy link
Member

bsideup commented May 17, 2022

Superseeded by #5347?

@kiview kiview closed this May 17, 2022
@kiview kiview deleted the fix-docker-desktop-auth branch May 17, 2022 23:02
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.

Cannot pull images when logged in to Docker Desktop (Status 500: unauthorized: incorrect username or password)

3 participants