카테고리 없음

ERROR M1 or M2 PLATFORM linux/arm64/v8 Not supported


Spring Datafication 2023. 3. 2. 12:40

IN MY CASE ERROR IN Alfresco 7.3 IN M1 or M2 PLATFORM linux/arm64/v8 Not supported


"I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars." —Og Mandino


M2 PLATFORM



For the pass two weeks, I have been despondent,for the nebulous reason why M1 docker runs an application Successfully.But currently an M2
docker fails to run it. I have been trying to figure out why, and I have been unsuccessful until today.


**M1 PLATFORM**


Some Docker images does not support some os architectures. Classical example is
alfresco which does not support linux/arm64/v8 architectures.


But in recent docker release notes, they have added support for running docker images on M1 platform.

With rosetta 2, docker can run linux/amd64 images on M1/M2 OS.

This feature can be enabled checking the box in the Docker Desktop preferences.



WELL IS THIS ENOUGH TO RUN ALFRESCO ON M2 PLATFORM?



No, it is not enough.
In my case, I have tried to run alfresco on M2 platform, but it fails.

There has been several references to this issue on the internet, but no solution has been found.

This is the issue on docker github.


WONDERING WHY ALFRESCO DOES NOT SUPPORT M2 PLATFORM?

  1. DO I NEED TO INSTALL ROSETTA 2?
  2. DO I NEED TO INSTALL QEMU ?
  3. DO I NEED TO INSTALL Docker BUILDX ?
  4. WOULD CHANGING DEFAULT ENVIRONMENT VARIABLES HELP ?

SOLUTIONS TO THE PROBLEM

I did try some solutions above, but they did not work.
Which I recommend anyone to try too.


In the light of all things, I have decided to master my fear of the unknown.

So I deleted my docker completely and reinstalled it.
Checked the box again for the support on apple chips, and restarted.

Logs from the installation of docker on M2 platform shows its running successfully.


SUMMARY

I have not been able to work around it any possible way. Definitely uninstalling docker was not the best idea, But in the mirage all that a common man see's is water.
It has been a long journey, but I have finally been able to run image that does not support M2 linux/arm64/v8 architecture.

Lessons Do not uninstall like i did try other possible ways if it does not work,go with the norm

반응형