-
Notifications
You must be signed in to change notification settings - Fork 643
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
Multi-platform buildx: unauthorized for fetching metadata for the base image #1583
Comments
Sound like a valid bug. I have no insight how the buildx support works, but I suppose it uses a similar authentication mechanism like |
I have a similar problem on docker:push using buildx, where the authentication tokens i have working in the docker config works fine, but because the buildx builder uses some kind of copied config folder, i get authentication failures when pushing. |
same on my side! i was happy to see buildx support being added to the plugin - was waiting hard for it. no I'm stuck with authentication. |
hi again, can it really be that since 0.40.0 (2022-05-29) nobody else ever used the build feature with a private docker registry? don't get me wrong - i'm not complaining, i just wonder if i missed something. i would really need help on that. thanks in advance |
@chonton : polite ping, Do you have any idea about this? |
some more details from my side:
when i try this on the command line i get exactly the same error.
i hope this can help a little bit to narrow down the problem. |
the plugin is also successfully creating a config.json in |
@arauchberger and @JesperTerkelsen: What Authentication method are you using? Do you have split push vs pull authentication? What kind of repository are you using? (ECR, gcp, artifactory, dockerhub) |
hi, i can see the config.json is created with the correct credentials. |
So it's a docker bug? |
i'm not sure. i tried to explain as good as i could in this comment #1583 (comment). |
I'm facing a similar problem.
If I remove the docker-maven-plugin/src/main/java/io/fabric8/maven/docker/service/BuildXService.java Line 66 in 043a569
to:
And the samples/multi-architecture is working fine. Final note, my versions
|
hi @robfrank , docker-maven-plugin/src/main/java/io/fabric8/maven/docker/service/BuildXService.java Line 218 in 043a569
so it now looks like this: append(cmds, "create", "--driver", "docker-container", "--name", builderName, "--node", builderName + "0"); |
i'm not very familiar with opening pull-requests and i'm not sure if this now is the perfect solution, but i would be happy if somebody else, more related to this code can have a look and trigger what's needed to get a new version or snapshot publicly available. many thanks in advance |
I can provide a PR with this two fixes to the project today or tomorrow |
remove --config from command string generation
Signed-off-by: Roberto.Franchini <ro.franchini@gmail.com>
remove --config from command string generation add --node option to buildx command Signed-off-by: Roberto.Franchini <ro.franchini@gmail.com>
sad to see that PR #1673 didn't make it to the latest release 😢 |
@arauchberger @robfrank : Hi, I just released v0.43.2 to maven central. Could you please check if this issue is still reproducible with new version? |
remove --config from command string generation add --node option to buildx command Signed-off-by: Roberto.Franchini <ro.franchini@gmail.com>
Hi @rohanKanojia, thanks you very much. |
Description
Using the plugin to run multi-platform builds via buildx fails to get the meta-data of base images, if the base image is located at a registry which needs authentication. The registry is configured in settings.xml.
Info
mvn -v
) :Sample output:
Using docker buildx directly on the command-line works.
The text was updated successfully, but these errors were encountered: