-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
docker credential helpers don't work with containerd image store #4653
Comments
Just created #4655 that should solve this issue. |
I forgot to check on the |
Wow, that is ... awesome, that's a great read! If you are on the Docker Community Slack, also always feel free to give a "ping" in the Also full disclosure; the whole authentication flow is currently far too complicated. Many parts of this originated from the very early beginnings of Docker, at which time code was often poorly documented, if at all ; the code-base was a lot smaller, there was only "one" registry (docker hub), and intent would be clear from the context/code itself. But this code went through many iterations after that (Authentication on Docker Hub changed, other registries started to appear, code moved to different repositories, and things like "credential helpers" were added). With the work on the containerd image store integration, we discovered many areas where context was lost, intended behavior/purpose not documented or ambiguous, and a decent amount of "archeology" was needed to try to track back these things. My team also has an internal backlog for things we discovered in the process, and which may need follow-up work. The intent is for most of those to be opened as ticket in upstream (public) issue trackers (but some of them need some cleaning up, as they may be just a quick "blurb" / "reminder"). Also see my comment on moby/moby#46779 (comment) (which is yet to be split into some more actionable items). In either case; if you found things on your Journey, such as Go structs or Fields that are not documented; contributions are always welcome and appreciated. Also don't hesitate to open pull requests for cases where you're not sure if your change is "correct" (or your change is in an "early state"); it's OK to iterate on changes; that's what code-reviews and conversations on GitHub are for (worst case; a pull request is closed without merging, and no harm done). |
@thaJeztah I am not on the Docker Community Slack. I would be interested in helping out with the work of what comes out of that internal backlog. If you are able and provide an invite, I would like to join the Slack community. |
I think this link should allow you to join (but I know the invite-URLs expire after some days, so if that link doesn't work, let me know then I can ask them to re-generate); https://dockr.ly/slack |
It does not match one of the domains listed. I do not have a |
@StealthyCoder can you try this URL? This one seems to be still active; https://dockercommunity.slack.com/join/shared_invite/zt-26vrhfx2r-GeFdhfxh1xlmW4yCFxou8w#/shared-invite/email |
closing this one ashttps://github.com//pull/4655 was merged. |
Description
I was experimenting with the WASM runtime setup documented here. I enabled the containerd image store feature and I got my simple docker image working I pushed to Docker Hub. I have to say, that felt really cool and awesome.
Then all of a sudden I could not get any of my images I had for the product I work for. After digging quite a bit, I found the issue. A one liner in the
NativeStore Get
method for the docker credential helpers does not set theServerAddress
property on theAuthConfig
object. Which gets propagated all the way down to a line of code indockerd
of themoby/moby
project.Reproduce
Expected behavior
The authorization should just keep on working like normal and as is the case with credential stores.
docker version
Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.24 GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523 runc: Version: 1.1.9 GitCommit: v1.1.9-0-gccaecfc docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
In the logs of
dockerd
you will find the following line:That is what narrowed it down for me. I already have a PR planned for this issue. I will link them together.
The text was updated successfully, but these errors were encountered: