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

Unable to push docker images to Nexus using "docker-maven-plugin" #1790

Open
wolverin26 opened this issue Jun 3, 2024 · 1 comment
Open

Comments

@wolverin26
Copy link

wolverin26 commented Jun 3, 2024

Hello,

I'm trying to build docker images and push them to a Nexus Repository using maven, but unfortunately I'm getting this error "http: server gave HTTP response to HTTPS client". Even if I have added the insure registry in /etc/docker/daemon.json

docker info
Insecure Registries:
192.168.206.45:5000
127.0.0.0/8
Live Restore Enabled: false

But still always having the same issue.

Btw, in another project not using maven it's working fine !! but when i use a push to the same repo using maven it's not working. It's gives me the error above.

@xiaoyao9184
Copy link

Multi-platform builds use buildx, and are separate builders created by buildx create,
which you can find in \target\docker\..\..\docker\buildx\instances,
and buildx has its own way to set up an insecure registry.

configuring plugin

<buildx>
  <platforms>
    <platform>linux/amd64</platform>
  </platforms>
  <builderName>maven.${project.artifactId}</builderName>
  <configFile>${project.basedir}/buildkitd.toml</configFile>
</buildx>

new buildkitd.toml

[registry."hostname:5000"]
    mirrors = ["hostname:5000"]
    http = true
    insecure = true

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

2 participants