-
Notifications
You must be signed in to change notification settings - Fork 618
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
Private Auth for build fails if it's under a subpath #3748
Comments
@AkihiroSuda will take this for investigation (in case it is a regression). |
@zk-kb4 I can't reproduce - it works for me. What would be really useful to further diagnose this: |
@apostasie I don't have any private images on ghcr.io to test unfortunately. |
It should be relatively easy to do.
Now, login with nerdctl: Then:
The created image |
This failed as well.
docker config,
|
Ok. @zk-kb4 could you help with the following:
|
|
Thanks. Can you share which template / how you installed the lima instance? |
Scratch previous comment. I managed to reproduce. @AkihiroSuda let's mark this confirmed. |
@zk-kb4 right now, you should be able to workaround the problem by using the registry default port in your
I will have a look at buildctl credentials resolution mechanism and see if the problem is here or over there. |
Description
If you have the following path
docker.domain.com/path/image
the auth will fail for the build. However pulling the image withnerdctl pull docker.domain.com/path/image
auths correctly and does not fail to pull the image. This is using Gitlab's container registry.This happens on
lima
and on our Gitlab Runners.Steps to reproduce the issue
Using the following dockerfile it will fail.
Even though I've done
nerdctl login docker.domain.com
and successfully can runnerdctl pull docker.domain.com/path/image
without issue. When it's in the dockerfile it fails to auth and pull the image for the build.Describe the results you received and expected
Error received when attempting to build,
Image successfully pulls using
nerdctl pull
Docker config,
What version of nerdctl are you using?
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: