Skip to content
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

Build fails with podman and extra labels #1763

Open
attiand opened this issue Feb 29, 2024 · 0 comments
Open

Build fails with podman and extra labels #1763

attiand opened this issue Feb 29, 2024 · 0 comments

Comments

@attiand
Copy link

attiand commented Feb 29, 2024

Description

Instructing docker-maven-plugin to add an extra label and building with Podman does not work.

The problem is probably related to #1676

Run the reproducer with the following arguments (adding docker.imagePropertyConfiguration=override due to #1332) :

DOCKER_HOST=unix:///var/run/user/1000/podman/podman.sock ./mvnw -Dmaven.deploy.skip=true -Ddocker.tags.0=latest -Ddocker.imagePropertyConfiguration=override deploy

I get

[INFO] Building tar: /home/maan0496/git/issues/fabric8io-docker-maven-plugin-issue/target/docker/fabric8io-test/0.0.1-SNAPSHOT/tmp/docker-build.tar
[INFO] DOCKER> [fabric8io-test:0.0.1-SNAPSHOT]: Created docker-build.tar in 20 milliseconds
[INFO] DOCKER> [fabric8io-test:0.0.1-SNAPSHOT]: Built image sha256:7a4c0
[INFO] DOCKER> [fabric8io-test:0.0.1-SNAPSHOT]: Tag with latest
[INFO] DOCKER> Tagging image fabric8io-test:latest successful!
[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ fabric8io-test ---
[INFO] Skipping artifact deployment
[INFO] 
[INFO] --- docker-maven-plugin:0.44.0:push (default) @ fabric8io-test ---
[INFO] DOCKER> Temporary image tag skipped. Target image 'fabric8io-test:0.0.1-SNAPSHOT' already has registry set or no registry is available
[ERROR] DOCKER> Unable to push 'fabric8io-test:0.0.1-SNAPSHOT' : {"errorDetail":{"message":"trying to reuse blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 at destination: checking whether a blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 exists in docker.io/library/fabric8io-test: requested access to the resource is denied"},"error":"trying to reuse blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 at destination: checking whether a blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 exists in docker.io/library/fabric8io-test: requested access to the resource is denied"} (Internal Server Error: 500) [{"errorDetail":{"message":"trying to reuse blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 at destination: checking whether a blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 exists in docker.io/library/fabric8io-test: requested access to the resource is denied"},"error":"trying to reuse blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 at destination: checking whether a blob sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492 exists in docker.io/library/fabric8io-test: requested access to the resource is denied"} (Internal Server Error: 500)

Info

  • docker-maven-plugin version :
    0.43.0 and 0.44.0
  • Maven version (mvn -v) :
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63
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

No branches or pull requests

1 participant