You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to push to the docker.io when executing multi-arch build.
When the docker.platform parameter is not specified everything works as expected - the image is built and successfully pushed to the Docker Hub. It is adding --Ddocker.platform=something makes the push to fail with the following message. I suspect something is wrong with the generated buildx config, and the credentials just aren't propagated correctly.
I have also noticed that when I specify the image name like this wajda/spline-web-ui and not specify registry (defaulting to docker.io AFAIK) then it works! But if I specify the registry explicitly like <registry>docker.io</registry> or as a part of the image name docker.io/wajda/spline-web-ui I always get "insufficient_scope: authorization failed" error.
Info
docker-maven-plugin version : 0.43.0
Maven version (mvn -v) :
Apache Maven 3.8.6 (Red Hat 3.8.6-4)
Maven home: /usr/share/maven
Java version: 11.0.19, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.19.0.7-1.fc38.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.3.6-200.fc38.x86_64", arch: "amd64", family: "unix"
Docker version :
Client: Docker Engine - Community
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfc
Built: Thu May 25 21:53:42 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.2
API version: 1.43 (minimum version 1.12)
Go version: go1.20.4
Git commit: 659604f
Built: Thu May 25 21:52:08 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
If it's a bug, how to reproduce :
Specify the registry in the image name and execute buildx build by specifying the target platform (docker.platforms=linux/amd64).
The text was updated successfully, but these errors were encountered:
wajda
added a commit
to wajda/docker-maven-plugin
that referenced
this issue
Jul 16, 2023
Description
Unable to push to the
docker.io
when executing multi-arch build.When the
docker.platform
parameter is not specified everything works as expected - the image is built and successfully pushed to the Docker Hub. It is adding--Ddocker.platform=something
makes the push to fail with the following message. I suspect something is wrong with the generatedbuildx
config, and the credentials just aren't propagated correctly.I specify credentials in the Maven
settings.xml
(I also tried differnt auth methods described in the plugin doc, but neither worked):What I have also noticed is that it is somehow relevant to the way how the :
I have also noticed that when I specify the image name like this
wajda/spline-web-ui
and not specify registry (defaulting todocker.io
AFAIK) then it works! But if I specify the registry explicitly like<registry>docker.io</registry>
or as a part of the image namedocker.io/wajda/spline-web-ui
I always get "insufficient_scope: authorization failed" error.Info
mvn -v
) :Specify the registry in the image name and execute buildx build by specifying the target platform (
docker.platforms=linux/amd64
).The text was updated successfully, but these errors were encountered: