Jhipster registry cannot start in Docker M1
thapatwat opened this issue ยท 13 comments
Jhipster registry cannot start in Docker M1
As I mention on title ,I used Registry image version: v6.3.0 in docker hub. Monitor log has show error as below when I start docker container
I'm not sure is that your problem, Docker side or I did something wrong.
Please answer me if you guy know how to solve this issue. Thank you
I'm not sure someone in the JHipster team owns a MacBook M1 so I guess we are relying on you to investigate it further. As a workaround, you should consider building from sources.
We bought some for some team members, typically for this use case (ping @pascalgrimaud ).
yes, I think @DanielFran or @mshima can help to test here
Yes, not all images have ARM64 support: https://docs.docker.com/docker-for-mac/apple-silicon/#known-issues
I can confirm the problem.
I think the fix is to provide a jhipster-registry container for linux/arm64
platform.
I have successfully run from source and run a custom build docker image (it took almost 40m using docker buildx build -t local-build .
).
@pascalgrimaud someone should take a look at docker cloud integration and try to enable linux/arm64
, or we can switch to GitHub actions to publish docker images.
https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
I can have a look at Docker Hub.
But in the meantime, we could simply document it, so the end user can build the image, as 40min is very long and can queue our CI
IMO 40min build is not a good alternative.
./mvnw -ntp package jib:dockerBuild
generates a docker images, but it fails to load due to dependencies.
I suppose it's broken for every platform. We should fix that.
Adding a bounty on this.
If there are several people who participated to this ticket, tell me, so I can increase the bounty for sharing
This is resolved now.
Arm64 image is published to docker https://hub.docker.com/r/jhipster/jhipster-registry/tags?page=1&ordering=last_updated.
This is resolved now. Arm64 image is published to docker https://hub.docker.com/r/jhipster/jhipster-registry/tags?page=1&ordering=last_updated.
Great!! Thank you for your information :)
@mshima : approved :)