Skip to content

Docker on macOS arm64 #1089

@jgoodall

Description

@jgoodall

I cannot run the full docker image on an arm64 Mac (environment details below). I can run docker run --init -p 8070:8070 lfoppiano/grobid:0.8.0 and that works, but if I try the full image, it immediately quits (same result with tag 0.8.1-SNAPSHOT):

docker run --init -p 8070:8070 grobid/grobid:0.8.0
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
WARN  [2024-03-05 16:57:33,076] org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable: HV000254: Missing parameter metadata for ResponseMeteredLevel(String, int), which declares implicit or synthetic parameters. Automatic resolution of generic type information for method parameters may yield incorrect results if multiple parameters have the same erasure. To solve this, compile your code with the '-parameters' flag.
The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine.

I am using Orbstack, and if I uncheck Use Rosetta to run Intel code, instead of the AVX instructions error, I get SSE4.1 instructions. My understanding based on the docs and the issues is that the deep learning image should work on CPUs on macOS using emulation, but I dont see instructions for doing that. I see a reference to libwapiti.dylib, but not how to get that or what to do with it.

Would it be possible to provide detailed instructions for somehow getting the grobid/grobid docker image working on a mac?

Related issues:

Environment details

macOS is 14.3.1 with an M2 chip. OrbStack 1.4.3.

Docker Info:

Client:
 Version:           25.0.3
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        4debf41
 Built:             Tue Feb  6 21:13:26 2024
 OS/Arch:           darwin/arm64
 Context:           orbstack

Server: Docker Engine - Community
 Engine:
  Version:          25.0.3
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       f417435
  Built:            Tue Feb  6 21:14:35 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          v1.7.13
  GitCommit:        7c3aca7a610df76212171d200ca3811ff6096eb8
 runc:
  Version:          1.1.12
  GitCommit:        51d5e94601ceffbbd85688df1c928ecccbfa4685
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockermacOS-specificIssue visible only on macOS environmentsneed helpIssues where the contributors are even more incompetent than usual

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions