Can't deploy on Mac M1 using Docker
Hi there!
I try to deploy on a Macbook Pro M1 Max using this Docker command:
docker run -d -p 8080:8080 --name hapi-fhir hapiproject/hapi:latest
But after several hours I can reach http://localhost:8080
This is the container log:
02 05:59:34.047 [main] INFO o.h.s.m.o.b.i.HibernateSearchIntegrator [HibernateSearchIntegrator.java:65] HSEARCH000034: Hibernate Search version 6.0.3.Final
2022-06-02 05:59:41.129 [main] INFO o.h.e.t.j.p.i.JtaPlatformInitiator [JtaPlatformInitiator.java:52] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-06-02 05:59:41.185 [main] INFO c.u.f.j.c.HapiFhirLocalContainerEntityManagerFactoryBean [AbstractEntityManagerFactoryBean.java:437] Initialized JPA EntityManagerFactory for persistence unit 'HAPI_PU'
2022-06-02 05:59:46.949 [main] INFO c.u.f.j.s.BaseSchedulerServiceImpl [BaseSchedulerServiceImpl.java:204] Scheduling local job ca.uhn.fhir.jpa.cache.ResourceChangeListenerCacheRefresherImpl with interval 00:00:10.000
2022-06-02 05:59:47.487 [main] INFO c.u.f.c.s.DefaultProfileValidationSupport [DefaultProfileValidationSupport.java:327] Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-resources.xml
2022-06-02 05:59:47.610 [main] INFO ca.uhn.fhir.util.XmlUtil [DependencyLogImpl.java:75] FHIR XML procesing will use StAX implementation 'Woodstox' version '6.2.5'
Hi. Can you check docker to make sure you are running a native linux/arm64 image? You may be running a linux/amd64 image in x86 emulation.
Thanks, @michaelabuckley!! I changed the docker command with these, and it worked fine!
docker run --platform linux/amd64 -d -p 8080:8080 --name hapi-fhir hapiproject/hapi:latest
@michaelabuckley, have you an arm64 native image? How can I run the docker run command?
Closed as stale